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