summaryrefslogtreecommitdiff
path: root/include/resolv.h
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2005-03-30 02:58:29 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2005-03-30 02:58:29 +0000
commit2888f4c4d0bbd1e24c59ba84c0a7de66b9e4ed20 (patch)
tree11ec334e5e40ff7983088bb0863ebb71d9919a0e /include/resolv.h
parent424c347dcc972c68eabb182bda67376354129ddb (diff)
make the resolver stat resolv.conf and update if it changes.
useful feedback and ok deraadt@
Diffstat (limited to 'include/resolv.h')
-rw-r--r--include/resolv.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/include/resolv.h b/include/resolv.h
index 19346841fed..8102f7950c8 100644
--- a/include/resolv.h
+++ b/include/resolv.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: resolv.h,v 1.15 2004/01/22 21:48:02 espie Exp $ */
+/* $OpenBSD: resolv.h,v 1.16 2005/03/30 02:58:28 tedu Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -134,7 +134,7 @@
struct __res_state {
int retrans; /* retransmission time interval */
int retry; /* number of times to retransmit */
- unsigned long options; /* option flags - see below. */
+ unsigned int options; /* option flags - see below. */
int nscount; /* number of name servers */
struct sockaddr_in
nsaddr_list[MAXNS]; /* address of name server */
@@ -142,7 +142,7 @@ struct __res_state {
unsigned short id; /* current message id */
char *dnsrch[MAXDNSRCH+1]; /* components of domain to search */
char defdname[256]; /* default domain (deprecated) */
- unsigned long pfcode; /* RES_PRF_ flags - see below. */
+ unsigned int pfcode; /* RES_PRF_ flags - see below. */
unsigned ndots:4; /* threshold for initial abs. query */
unsigned nsort:4; /* number of elements in sort_list[] */
char unused[3];
@@ -151,7 +151,8 @@ struct __res_state {
u_int32_t mask;
} sort_list[MAXRESOLVSORT];
char lookups[MAXDNSLUS];
- char pad[68]; /* on an i386 this means 512b total */
+ struct timespec restimespec;
+ time_t reschktime;
};
#if 1 /* INET6 */
@@ -337,6 +338,7 @@ int dn_comp(const char *, unsigned char *, int,
int dn_expand(const unsigned char *, const unsigned char *,
const unsigned char *, char *, int);
int res_init(void);
+int _res_init(int);
unsigned int res_randomid(void);
int res_query(const char *, int, int, unsigned char *, int)
__attribute__((__bounded__(__string__,4,5)));