include: Complete and properly pack DNS_HEADER structure.
This commit is contained in:
parent
e618ab65ed
commit
3809c7a1bc
|
@ -176,22 +176,26 @@ typedef struct _IP4_ARRAY
|
||||||
IP4_ADDRESS AddrArray[1];
|
IP4_ADDRESS AddrArray[1];
|
||||||
} IP4_ARRAY, *PIP4_ARRAY;
|
} IP4_ARRAY, *PIP4_ARRAY;
|
||||||
|
|
||||||
|
#include <pshpack1.h>
|
||||||
typedef struct _DNS_HEADER
|
typedef struct _DNS_HEADER
|
||||||
{
|
{
|
||||||
WORD Xid;
|
WORD Xid;
|
||||||
BYTE RecursionDesired;
|
BYTE RecursionDesired:1;
|
||||||
BYTE Truncation;
|
BYTE Truncation:1;
|
||||||
BYTE Authoritative;
|
BYTE Authoritative:1;
|
||||||
BYTE Opcode;
|
BYTE Opcode:4;
|
||||||
BYTE IsResponse;
|
BYTE IsResponse:1;
|
||||||
BYTE ResponseCode;
|
BYTE ResponseCode:4;
|
||||||
BYTE Reserved;
|
BYTE CheckingDisabled:1;
|
||||||
BYTE RecursionAvailable;
|
BYTE AuthenticatedData:1;
|
||||||
|
BYTE Reserved:1;
|
||||||
|
BYTE RecursionAvailable:1;
|
||||||
WORD QuestionCount;
|
WORD QuestionCount;
|
||||||
WORD AnswerCount;
|
WORD AnswerCount;
|
||||||
WORD NameServerCount;
|
WORD NameServerCount;
|
||||||
WORD AdditionalCount;
|
WORD AdditionalCount;
|
||||||
} DNS_HEADER, *PDNS_HEADER;
|
} DNS_HEADER, *PDNS_HEADER;
|
||||||
|
#include <poppack.h>
|
||||||
|
|
||||||
typedef struct _DNS_MESSAGE_BUFFER
|
typedef struct _DNS_MESSAGE_BUFFER
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue