diff options
| author | Yoshinobu Inoue <shin@FreeBSD.org> | 1999-12-28 02:37:14 +0000 |
|---|---|---|
| committer | Yoshinobu Inoue <shin@FreeBSD.org> | 1999-12-28 02:37:14 +0000 |
| commit | 7d56d3747c94bb6889973c7449a57e83cc943d39 (patch) | |
| tree | cd915697a1aaa5b333863b336bd5f4e0e9c24e85 /include/resolv.h | |
| parent | ed63a7aaef029dd4831541f0103619792e883d6f (diff) | |
Notes
Diffstat (limited to 'include/resolv.h')
| -rw-r--r-- | include/resolv.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/resolv.h b/include/resolv.h index e44e43abc069..4a0cf7470aba 100644 --- a/include/resolv.h +++ b/include/resolv.h @@ -60,6 +60,7 @@ #include <sys/param.h> #include <sys/types.h> #include <sys/cdefs.h> +#include <sys/socket.h> #include <stdio.h> /* @@ -116,6 +117,21 @@ struct __res_state { char pad[72]; /* on an i386 this means 512b total */ }; +/* for INET6 */ +/* + * replacement of __res_state, separated to keep binary compatibility. + */ +struct __res_state_ext { + struct sockaddr_storage nsaddr_list[MAXNS]; + struct { + int af; /* address family for addr, mask */ + union { + struct in_addr ina; + struct in6_addr in6a; + } addr, mask; + } sort_list[MAXRESOLVSORT]; +}; + /* * Resolver options (keep these in synch with res_debug.c, please) */ @@ -181,6 +197,9 @@ struct res_sym { }; extern struct __res_state _res; +/* for INET6 */ +extern struct __res_state_ext _res_ext; + extern const struct res_sym __p_class_syms[]; extern const struct res_sym __p_type_syms[]; |
