Commit | Line | Data |
---|---|---|
bb0cfa24 DF |
1 | /* |
2 | * Copyright (c) 1983 Regents of the University of California. | |
3 | * All rights reserved. The Berkeley software License Agreement | |
4 | * specifies the terms and conditions for redistribution. | |
5 | * | |
56394f31 | 6 | * @(#)resolv.h 5.2 (Berkeley) %G% |
bb0cfa24 DF |
7 | */ |
8 | ||
a4b4ca70 RC |
9 | /* |
10 | * Global defines and variables for resolver stub. | |
11 | */ | |
12 | ||
a4b4ca70 RC |
13 | |
14 | struct state { | |
15 | int retrans; /* retransmition time interval */ | |
16 | int retry; /* number of times to retransmit */ | |
17 | int options; /* option flags - see below. */ | |
18 | struct sockaddr_in nsaddr; /* address of name server */ | |
19 | u_short id; /* current packet id */ | |
20 | char defdname[MAXDNAME]; /* default domain */ | |
21 | }; | |
22 | ||
23 | /* | |
24 | * Resolver options | |
25 | */ | |
26 | #define RES_INIT 0x001 /* address initialized */ | |
27 | #define RES_DEBUG 0x002 /* print debug messages */ | |
28 | #define RES_AAONLY 0x004 /* authoritative answers only */ | |
29 | #define RES_USEVC 0x008 /* use virtual circuit */ | |
30 | #define RES_PRIMARY 0x010 /* query primary server only */ | |
31 | #define RES_IGNTC 0x020 /* ignore trucation errors */ | |
32 | #define RES_RECURSE 0x040 /* recursion desired */ | |
33 | #define RES_DEFNAMES 0x080 /* use default domain name */ | |
34 | ||
35 | extern struct state _res; | |
36 | extern char *p_cdname(), *p_rr(), *p_type(), *p_class(); |