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 | * | |
6 | * @(#)resolv.h 5.1 (Berkeley) %G% | |
7 | */ | |
8 | ||
a4b4ca70 RC |
9 | /* |
10 | * Global defines and variables for resolver stub. | |
11 | */ | |
12 | ||
13 | /* | |
14 | * Resolver configuration file. Contains the address of the | |
15 | * inital name server to query and the default domain for | |
16 | * non fully qualified domain names. | |
17 | */ | |
18 | #define CONFFILE "/usr/local/lib/resolv.conf" | |
19 | ||
20 | struct state { | |
21 | int retrans; /* retransmition time interval */ | |
22 | int retry; /* number of times to retransmit */ | |
23 | int options; /* option flags - see below. */ | |
24 | struct sockaddr_in nsaddr; /* address of name server */ | |
25 | u_short id; /* current packet id */ | |
26 | char defdname[MAXDNAME]; /* default domain */ | |
27 | }; | |
28 | ||
29 | /* | |
30 | * Resolver options | |
31 | */ | |
32 | #define RES_INIT 0x001 /* address initialized */ | |
33 | #define RES_DEBUG 0x002 /* print debug messages */ | |
34 | #define RES_AAONLY 0x004 /* authoritative answers only */ | |
35 | #define RES_USEVC 0x008 /* use virtual circuit */ | |
36 | #define RES_PRIMARY 0x010 /* query primary server only */ | |
37 | #define RES_IGNTC 0x020 /* ignore trucation errors */ | |
38 | #define RES_RECURSE 0x040 /* recursion desired */ | |
39 | #define RES_DEFNAMES 0x080 /* use default domain name */ | |
40 | ||
41 | extern struct state _res; | |
42 | extern char *p_cdname(), *p_rr(), *p_type(), *p_class(); |