Author: akhaldi
Date: Mon Feb 23 18:31:46 2015
New Revision: 66430
URL:
http://svn.reactos.org/svn/reactos?rev=66430&view=rev
Log:
[PSDK] Use proper packing for some structures.
Modified:
trunk/reactos/include/psdk/windns.h
Modified: trunk/reactos/include/psdk/windns.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/windns.h?rev=…
==============================================================================
--- trunk/reactos/include/psdk/windns.h [iso-8859-1] (original)
+++ trunk/reactos/include/psdk/windns.h [iso-8859-1] Mon Feb 23 18:31:46 2015
@@ -153,23 +153,39 @@
DWORD IP6Dword[4];
} IP6_ADDRESS, *PIP6_ADDRESS, DNS_IP6_ADDRESS, *PDNS_IP6_ADDRESS;
+#pragma pack(push, 1)
+
typedef struct _DNS_HEADER {
- WORD Xid;
- BYTE RecursionDesired:1;
- BYTE Truncation:1;
- BYTE Authoritative:1;
- BYTE Opcode:4;
- BYTE IsResponse:1;
- BYTE ResponseCode:4;
- BYTE CheckingDisabled:1;
- BYTE AuthenticatedData:1;
- BYTE Reserved:1;
- BYTE RecursionAvailable:1;
- WORD QuestionCount;
- WORD AnswerCount;
- WORD NameServerCount;
- WORD AdditionalCount;
+ WORD Xid;
+ BYTE RecursionDesired:1;
+ BYTE Truncation:1;
+ BYTE Authoritative:1;
+ BYTE Opcode:4;
+ BYTE IsResponse:1;
+ BYTE ResponseCode:4;
+ BYTE CheckingDisabled:1;
+ BYTE AuthenticatedData:1;
+ BYTE Reserved:1;
+ BYTE RecursionAvailable:1;
+ WORD QuestionCount;
+ WORD AnswerCount;
+ WORD NameServerCount;
+ WORD AdditionalCount;
} DNS_HEADER, *PDNS_HEADER;
+
+typedef struct _DNS_WIRE_QUESTION {
+ WORD QuestionType;
+ WORD QuestionClass;
+} DNS_WIRE_QUESTION, *PDNS_WIRE_QUESTION;
+
+typedef struct _DNS_WIRE_RECORD {
+ WORD RecordType;
+ WORD RecordClass;
+ DWORD TimeToLive;
+ WORD DataLength;
+} DNS_WIRE_RECORD, *PDNS_WIRE_RECORD;
+
+#pragma pack(pop)
typedef struct _DNS_MESSAGE_BUFFER {
DNS_HEADER MessageHead;
@@ -389,16 +405,7 @@
DWORD dwCacheTimeout;
LPWSTR pNameResultDomain;
} DNS_WINSR_DATAW, *PDNS_WINSR_DATAW;
-typedef struct _DNS_WIRE_QUESTION {
- WORD QuestionType;
- WORD QuestionClass;
-} DNS_WIRE_QUESTION, *PDNS_WIRE_QUESTION;
-typedef struct _DNS_WIRE_RECORD {
- WORD RecordType;
- WORD RecordClass;
- DWORD TimeToLive;
- WORD DataLength;
-} DNS_WIRE_RECORD, *PDNS_WIRE_RECORD;
+
typedef struct {
IP4_ADDRESS IpAddress;
UCHAR chProtocol;