nameser.h File Reference

BIND_4_COMPAT

__NAMESER

NS_PACKETSZ

maximum packet size

NS_MAXDNAME

maximum domain name

NS_MAXCDNAME

maximum compressed domain name

NS_MAXLABEL

maximum length of domain label

NS_HFIXEDSZ

bytes of fixed data in header

NS_QFIXEDSZ

bytes of fixed data in query

NS_RRFIXEDSZ

bytes of fixed data in r record

NS_INT32SZ

bytes of data in a u_int32_t

NS_INT16SZ

bytes of data in a u_int16_t

NS_INT8SZ

bytes of data in a u_int8_t

NS_INADDRSZ

IPv4 T_A

NS_IN6ADDRSZ

IPv6 T_AAAA

NS_CMPRSFLGS

Flag bits indicating name compression.

NS_DEFAULTPORT

For both TCP and UDP.

Enum __ns_sect

EnumeratorValueDescription
ns_s_qd0
ns_s_zn0
ns_s_an1
ns_s_pr1
ns_s_ns2
ns_s_ud2
ns_s_ar3
ns_s_max4

Typedef ns_sect

typedef enum __ns_sectns_sect

These can be expanded with synonyms, just keep ns_parse.c:ns_parserecord() in synch with it.

Typedef ns_msg

typedef struct __ns_msgns_msg

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.

_ns_flagdata

struct _ns_flagdata_ns_flagdata

ns_msg_getflag

ns_msg_id

ns_msg_base

ns_msg_end

ns_msg_size

ns_msg_count

Typedef ns_rr

typedef struct __ns_rrns_rr

This is a parsed record. It is caller allocated and has no dynamic data.

ns_rr_name

ns_rr_type

ns_rr_class

ns_rr_ttl

ns_rr_rdlen

ns_rr_rdata

Enum __ns_flag

Typedef ns_flag

typedef enum __ns_flagns_flag

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[].

Enum __ns_opcode

Typedef ns_opcode

typedef enum __ns_opcodens_opcode

Currently defined opcodes.

Enum __ns_rcode

Typedef ns_rcode

typedef enum __ns_rcodens_rcode

Currently defined response codes.

Enum __ns_update_operation

EnumeratorValueDescription
ns_uop_delete0
ns_uop_add1
ns_uop_max2

Typedef ns_update_operation

typedef enum __ns_update_operationns_update_operation

BIND_UPDATE

Typedef ns_updrec

typedef struct ns_updrecns_updrec

Enum __ns_type

Typedef ns_type

typedef enum __ns_typens_type

Currently defined type values for resources and queries.

Enum __ns_class

EnumeratorValueDescription
ns_c_in1
ns_c_chaos3
ns_c_hs4
ns_c_none254
ns_c_any255
ns_c_max65536

Typedef ns_class

typedef enum __ns_classns_class

Values for class field

NS_KEY_TYPEMASK

NS_KEY_TYPE_AUTH_CONF

NS_KEY_TYPE_CONF_ONLY

NS_KEY_TYPE_AUTH_ONLY

NS_KEY_TYPE_NO_KEY

NS_KEY_NO_AUTH

NS_KEY_NO_CONF

NS_KEY_EXPERIMENTAL

NS_KEY_RESERVED3

NS_KEY_RESERVED4

NS_KEY_USERACCOUNT

NS_KEY_ENTITY

NS_KEY_ZONEKEY

NS_KEY_IPSEC

NS_KEY_EMAIL

NS_KEY_RESERVED10

NS_KEY_RESERVED11

NS_KEY_SIGNATORYMASK

NS_KEY_RESERVED_BITMASK

NS_ALG_MD5RSA

NS_ALG_EXPIRE_ONLY

NS_ALG_PRIVATE_OID

NS_MD5RSA_MIN_BITS

NS_MD5RSA_MAX_BITS

NS_MD5RSA_MAX_BYTES

NS_MD5RSA_MAX_BASE64

NS_SIG_TYPE

NS_SIG_ALG

NS_SIG_LABELS

NS_SIG_OTTL

NS_SIG_EXPIR

NS_SIG_SIGNED

NS_SIG_FOOT

NS_SIG_SIGNER

NS_NXT_BITS

NS_NXT_BIT_SET

NS_NXT_BIT_CLEAR

NS_NXT_BIT_ISSET

NS_GET16

NS_GET32

NS_PUT16

NS_PUT32

ns_get16

ns_get32

ns_put16

ns_put32

ns_initparse

ns_parserr

ns_sprintrr

ns_sprintrrf

ns_format_ttl

ns_parse_ttl

ns_name_ntop

ns_name_pton

ns_name_unpack

ns_name_pack

ns_name_compress

ns_name_uncompress