NS_PACKETSZ 512
Description
maximum packet size
NS_MAXDNAME 1025
Description
maximum domain name
NS_MAXCDNAME 255
Description
maximum compressed domain name
NS_MAXLABEL 63
Description
maximum length of domain label
NS_HFIXEDSZ 12
Description
bytes of fixed data in header
NS_QFIXEDSZ 4
Description
bytes of fixed data in query
NS_RRFIXEDSZ 10
Description
bytes of fixed data in r record
NS_INT32SZ 4
Description
bytes of data in a u_int32_t
NS_INT16SZ 2
Description
bytes of data in a u_int16_t
NS_INT8SZ 1
Description
bytes of data in a u_int8_t
NS_INADDRSZ 4
Description
IPv4 T_A
NS_IN6ADDRSZ 16
Description
IPv6 T_AAAA
NS_CMPRSFLGS 0xc0
Description
Flag bits indicating name compression.
NS_DEFAULTPORT 53
Description
For both TCP and UDP.
typedef enum __ns_sect ns_sect;
Description
These can be expanded with synonyms, just keep ns_parse.c:ns_parserecord() in synch with it.
typedef struct __ns_msg ns_msg;
Description
This is a message handle. It is caller allocated and has no dynamic data. This structure is intended to be opaque to all but
ns_parse.c, thus the leading _'s on the member names. Use the accessor functions, not the _'s.
typedef struct __ns_rr ns_rr;
Description
This is a parsed record. It is caller allocated and has no dynamic data.
typedef enum __ns_flag ns_flag;
Description
These don't have to be in the same order as in the packet flags word, and they can even overlap in some cases, but they will
need to be kept in synch with ns_parse.c:ns_flagdata[].
typedef enum __ns_opcode ns_opcode;
Description
Currently defined opcodes.
typedef enum __ns_rcode ns_rcode;
Description
Currently defined response codes.
Typedef ns_update_operation
typedef enum __ns_update_operation ns_update_operation;
Description
BIND_UPDATE
typedef enum __ns_type ns_type;
Description
Currently defined type values for resources and queries.
typedef enum __ns_class ns_class;
Description
Values for class field
nameser.h Global variables