Bernie Innocenti | 5586419 | 2018-08-30 04:05:20 +0900 | [diff] [blame] | 1 | /* $NetBSD: res_private.h,v 1.1.1.1 2004/05/20 17:18:54 christos Exp $ */ |
| 2 | |
Bernie Innocenti | f89b351 | 2018-08-30 07:34:37 +0900 | [diff] [blame^] | 3 | #ifndef _RES_PRIVATE_H_ |
| 4 | #define _RES_PRIVATE_H_ |
| 5 | |
| 6 | #include "resolv_private.h" |
Bernie Innocenti | 5586419 | 2018-08-30 04:05:20 +0900 | [diff] [blame] | 7 | |
| 8 | struct __res_state_ext { |
Bernie Innocenti | f12d5bb | 2018-08-31 14:09:46 +0900 | [diff] [blame] | 9 | union res_sockaddr_union nsaddrs[MAXNS]; |
| 10 | struct sort_list { |
| 11 | int af; |
| 12 | union { |
| 13 | struct in_addr ina; |
| 14 | struct in6_addr in6a; |
| 15 | } addr, mask; |
| 16 | } sort_list[MAXRESOLVSORT]; |
| 17 | char nsuffix[64]; |
| 18 | char nsuffix2[64]; |
Bernie Innocenti | 5586419 | 2018-08-30 04:05:20 +0900 | [diff] [blame] | 19 | }; |
| 20 | |
Bernie Innocenti | f12d5bb | 2018-08-31 14:09:46 +0900 | [diff] [blame] | 21 | extern int res_ourserver_p(const res_state statp, const struct sockaddr* sa); |
Bernie Innocenti | 5586419 | 2018-08-30 04:05:20 +0900 | [diff] [blame] | 22 | |
Bernie Innocenti | f89b351 | 2018-08-30 07:34:37 +0900 | [diff] [blame^] | 23 | #endif // _RES_PRIVATE_H_ |