Bernie Innocenti | 318ed2d | 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 | ac18b12 | 2018-10-01 23:10:18 +0900 | [diff] [blame] | 3 | #ifndef NETD_RES_STATE_EXT_H |
| 4 | #define NETD_RES_STATE_EXT_H |
Bernie Innocenti | afaacf7 | 2018-08-30 07:34:37 +0900 | [diff] [blame] | 5 | |
| 6 | #include "resolv_private.h" |
Bernie Innocenti | 318ed2d | 2018-08-30 04:05:20 +0900 | [diff] [blame] | 7 | |
Bernie Innocenti | ac18b12 | 2018-10-01 23:10:18 +0900 | [diff] [blame] | 8 | // TODO: consider inlining into res_state |
| 9 | struct res_state_ext { |
nuccachen | b980f2f | 2018-10-23 17:10:58 +0800 | [diff] [blame] | 10 | sockaddr_union nsaddrs[MAXNS]; |
Bernie Innocenti | 8ad893f | 2018-08-31 14:09:46 +0900 | [diff] [blame] | 11 | struct sort_list { |
| 12 | int af; |
| 13 | union { |
| 14 | struct in_addr ina; |
| 15 | struct in6_addr in6a; |
| 16 | } addr, mask; |
| 17 | } sort_list[MAXRESOLVSORT]; |
| 18 | char nsuffix[64]; |
| 19 | char nsuffix2[64]; |
Bernie Innocenti | 318ed2d | 2018-08-30 04:05:20 +0900 | [diff] [blame] | 20 | }; |
| 21 | |
Bernie Innocenti | ac18b12 | 2018-10-01 23:10:18 +0900 | [diff] [blame] | 22 | #endif // NETD_RES_STATE_EXT_H |