xref: /illumos-gate/usr/src/lib/libresolv2/common/resolv/res_private.h (revision 355b4669e025ff377602b6fc7caaf30dbc218371)
1 /*
2  * Copyright 2003 Sun Microsystems, Inc.  All rights reserved.
3  * Use is subject to license terms.
4  */
5 
6 #pragma ident	"%Z%%M%	%I%	%E% SMI"
7 
8 #ifndef res_private_h
9 #define res_private_h
10 
11 struct __res_state_ext {
12 	union res_sockaddr_union nsaddrs[MAXNS];
13 	struct sort_list {
14 		int     af;
15 		union {
16 			struct in_addr  ina;
17 			struct in6_addr in6a;
18 		} addr, mask;
19 	} sort_list[MAXRESOLVSORT];
20 	char nsuffix[64];
21 	char nsuffix2[64];
22 };
23 
24 extern int
25 res_ourserver_p(const res_state statp, const struct sockaddr *sa);
26 
27 #endif
28