blob: 6ed33983afaf4587bbed7d3a66f0c87ef33347c9 [file] [log] [blame]
Bernie Innocenti318ed2d2018-08-30 04:05:20 +09001/* $NetBSD: res_private.h,v 1.1.1.1 2004/05/20 17:18:54 christos Exp $ */
2
Bernie Innocentiac18b122018-10-01 23:10:18 +09003#ifndef NETD_RES_STATE_EXT_H
4#define NETD_RES_STATE_EXT_H
Bernie Innocentiafaacf72018-08-30 07:34:37 +09005
6#include "resolv_private.h"
Bernie Innocenti318ed2d2018-08-30 04:05:20 +09007
Bernie Innocentiac18b122018-10-01 23:10:18 +09008// TODO: consider inlining into res_state
9struct res_state_ext {
nuccachenb980f2f2018-10-23 17:10:58 +080010 sockaddr_union nsaddrs[MAXNS];
Bernie Innocenti8ad893f2018-08-31 14:09:46 +090011 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 Innocenti318ed2d2018-08-30 04:05:20 +090020};
21
Bernie Innocentiac18b122018-10-01 23:10:18 +090022#endif // NETD_RES_STATE_EXT_H