blob: 2f487684c0dbd0176df3672deed8b38e30c14b37 [file] [log] [blame]
Bernie Innocenti55864192018-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 Innocentif89b3512018-08-30 07:34:37 +09003#ifndef _RES_PRIVATE_H_
4#define _RES_PRIVATE_H_
5
6#include "resolv_private.h"
Bernie Innocenti55864192018-08-30 04:05:20 +09007
8struct __res_state_ext {
Bernie Innocentif12d5bb2018-08-31 14:09:46 +09009 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 Innocenti55864192018-08-30 04:05:20 +090019};
20
Bernie Innocentif12d5bb2018-08-31 14:09:46 +090021extern int res_ourserver_p(const res_state statp, const struct sockaddr* sa);
Bernie Innocenti55864192018-08-30 04:05:20 +090022
Bernie Innocentif89b3512018-08-30 07:34:37 +090023#endif // _RES_PRIVATE_H_