xref: /netbsd-src/lib/libc/resolv/res_private.h (revision 85f5e301f5b0e5c7695c7222d16769f8f55f6aeb)
1 /*	$NetBSD: res_private.h,v 1.5 2024/01/23 17:24:38 christos Exp $	*/
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 res_conf_time;
18 	int kq, resfd;
19 	pid_t kqpid;
20 };
21 
22 extern int res_ourserver_p(const res_state, const struct sockaddr *);
23 extern int __res_vinit(res_state, int);
24 #ifdef COMPAT__RES
25 extern void *__res_get_old_state(void);
26 extern void __res_put_old_state(void *);
27 #endif
28 
29 
30 #endif
31 
32 /*! \file */
33