xref: /freebsd/lib/libc/resolv/res_private.h (revision 42249ef2)
1 /* $FreeBSD$ */
2 
3 #ifndef res_private_h
4 #define res_private_h
5 
6 struct __res_state_ext {
7 	union res_sockaddr_union nsaddrs[MAXNS];
8 	struct sort_list {
9 		int     af;
10 		union {
11 			struct in_addr  ina;
12 			struct in6_addr in6a;
13 		} addr, mask;
14 	} sort_list[MAXRESOLVSORT];
15 	char nsuffix[64];
16 	char nsuffix2[64];
17 	struct timespec	conf_mtim;	/* mod time of loaded resolv.conf */
18 	time_t		conf_stat;	/* time of last stat(resolv.conf) */
19 	u_short	reload_period;		/* seconds between stat(resolv.conf) */
20 };
21 
22 extern int
23 res_ourserver_p(const res_state statp, const struct sockaddr *sa);
24 
25 #endif
26 
27 /*! \file */
28