78 #define __BIND 19950621 97 #define NAMESERVER_PORT 53 106 #define NS_NOTIFY_OP 0x4 111 # define UPDATEDA 0xb 113 # define UPDATEMA 0xd 114 # define ZONEINIT 0xe 129 # define NOCHANGE 0xf 157 #define T_NSAP_PTR 23 190 #define CONV_SUCCESS 0 191 #define CONV_OVERFLOW (-1) 192 #define CONV_BADFMT (-2) 193 #define CONV_BADCKSUM (-3) 194 #define CONV_BADBUFLEN (-4) 218 unsigned qdcount :16;
219 unsigned ancount :16;
220 unsigned nscount :16;
221 unsigned arcount :16;
227 #define INDIR_MASK 0xc0 251 #define NS_GET16(s, cp) { \ 252 register u_char *t_cp = (u_char *)(cp); \ 253 (s) = ((u_int16)t_cp[0] << 8) \ 254 | ((u_int16)t_cp[1]) \ 259 #define NS_GET32(l, cp) { \ 260 register u_char *t_cp = (u_char *)(cp); \ 261 (l) = ((u_int32)t_cp[0] << 24) \ 262 | ((u_int32)t_cp[1] << 16) \ 263 | ((u_int32)t_cp[2] << 8) \ 264 | ((u_int32)t_cp[3]) \ 269 #define NS_PUT16(s, cp) { \ 270 register u_int16 t_s = (u_int16)(s); \ 271 register u_char *t_cp = (u_char *)(cp); \ 272 *t_cp++ = (u_char)t_s >> 8; \ 273 *t_cp = (u_char)t_s; \ 277 #define NS_PUT32(l, cp) { \ 278 register u_int32 t_l = (u_int32)(l); \ 279 register u_char *t_cp = (u_char *)(cp); \ 280 *t_cp++ = (u_char)t_l >> 24; \ 281 *t_cp++ = (u_char)t_l >> 16; \ 282 *t_cp++ = (u_char)t_l >> 8; \ 283 *t_cp = (u_char)t_l; \ 287 extern u_int
ns_get16(
const u_char *);
288 extern u_long
ns_get32(
const u_char *);
289 extern void ns_put16(u_int, u_char *);
290 extern void ns_put32(u_long, u_char *);
short r_zone
Definition: nameser.h:233
int r_size
Definition: nameser.h:237
void ns_put16(u_int, u_char *)
Definition: nameser.h:204
enum __ns_opcode ns_opcode
__ns_opcode
Definition: nameser.h:293
short r_type
Definition: nameser.h:235
void ns_put32(u_long, u_char *)
Definition: nameser.h:294
u_long ns_get32(const u_char *)
u_int ns_get16(const u_char *)
char * r_data
Definition: nameser.h:238
u_long r_ttl
Definition: nameser.h:236
short r_class
Definition: nameser.h:234
unsigned int u_int32
Definition: types.h:56
Definition: nameser.h:232