1:
2: /*
3: * Copyright (c) 1983 Regents of the University of California.
4: * All rights reserved. The Berkeley software License Agreement
5: * specifies the terms and conditions for redistribution.
6: *
7: * @(#)resolv.h 5.4 (Berkeley) 2/22/86
8: */
9:
10: /*
11: * Global defines and variables for resolver stub.
12: */
13:
14:
15: #define MAXNS 3 /* max # name servers we'll track */
16:
17:
18: struct state {
19: int retrans; /* retransmition time interval */
20: int retry; /* number of times to retransmit */
21: long options; /* option flags - see below. */
22: int nscount; /* number of name servers */
23: struct sockaddr_in nsaddr_list[MAXNS]; /* address of name server */
24: #define nsaddr nsaddr_list[0] /* for backward compatibility */
25: u_short id; /* current packet id */
26: char defdname[MAXDNAME]; /* default domain */
27: };
28:
29: /*
30: * Resolver options
31: */
32: #define RES_INIT 0x0001 /* address initialized */
33: #define RES_DEBUG 0x0002 /* print debug messages */
34: #define RES_AAONLY 0x0004 /* authoritative answers only */
35: #define RES_USEVC 0x0008 /* use virtual circuit */
36: #define RES_PRIMARY 0x0010 /* query primary server only */
37: #define RES_IGNTC 0x0020 /* ignore trucation errors */
38: #define RES_RECURSE 0x0040 /* recursion desired */
39: #define RES_DEFNAMES 0x0080 /* use default domain name */
40: #define RES_STAYOPEN 0x0100 /* Keep TCP socket open */
41:
42: extern struct state _res;
43: extern char *p_cdname(), *p_rr(), *p_type(), *p_class();
Defined struct's
state
defined in line
18; used 10 times
Defined macros
MAXNS
defined in line
15; used 4 times
RES_DEBUG
defined in line
33; used 44 times
- in /usr/src/etc/named/tools/ns.lookup/src/getinfo.c line
136,
262,
519,
569,
680
- in /usr/src/etc/named/tools/ns.lookup/src/list.c line
153
- in /usr/src/etc/named/tools/ns.lookup/src/main.c line
661-665(3),
745
- in /usr/src/etc/named/tools/ns.lookup/src/send.c line
108,
121,
138,
152,
168,
180,
189,
195,
214,
224
- in /usr/src/etc/named/tools/nstest.c line
33
- in /usr/src/lib/libc/net/named/gethostnamadr.c line
72,
88,
175,
205,
238,
271
- in /usr/src/lib/libc/net/res_init.c line
105
- in /usr/src/lib/libc/net/res_mkquery.c line
41
- in /usr/src/lib/libc/net/res_send.c line
50,
67,
79,
87,
105,
124,
140,
158,
167,
188,
198,
206,
217,
229,
244
nsaddr
defined in line
24; used 11 times
Usage of this include