HEADER Struct Reference

#include <stdapis/arpa/nameser_compat.h>

struct HEADER
Public Attributes
unsignedaa
unsignedad
unsignedancount
unsignedarcount
unsignedcd
unsignedid
unsignednscount
unsignedopcode
unsignedqdcount
unsignedqr
unsignedra
unsignedrcode
unsignedrd
unsignedtc
unsignedunused

Detailed Description

Structure for query header. The order of the fields is machine- and compiler-dependent, depending on the byte/bit order and the layout of bit fields. We use bit fields only in int variables, as this is all ANSI requires. This requires a somewhat confusing rearrangement.

Member Attribute Documentation

aa

unsignedaa

ad

unsignedad

ancount

unsignedancount

arcount

unsignedarcount

cd

unsignedcd

id

unsignedid

nscount

unsignednscount

opcode

unsignedopcode

qdcount

unsignedqdcount

qr

unsignedqr

ra

unsignedra

rcode

unsignedrcode

rd

unsignedrd

tc

unsignedtc

unused

unsignedunused