summaryrefslogtreecommitdiffstats
path: root/include/resolv.h
diff options
context:
space:
mode:
authorshin <shin@FreeBSD.org>1999-12-28 02:37:14 +0000
committershin <shin@FreeBSD.org>1999-12-28 02:37:14 +0000
commit8c2ccb59caf882ac518eda1f570ea731d4466216 (patch)
treeec4d4f8bd121d60c04c8119810151af20c92b20b /include/resolv.h
parentb39a79861ddfb250e941d89c255bcb8cda9481dc (diff)
downloadFreeBSD-src-8c2ccb59caf882ac518eda1f570ea731d4466216.zip
FreeBSD-src-8c2ccb59caf882ac518eda1f570ea731d4466216.tar.gz
Getaddrinfo(), getnameinfo(), and etc support in libc/net.
Several udp and raw apps IPv6 support. Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project
Diffstat (limited to 'include/resolv.h')
-rw-r--r--include/resolv.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/resolv.h b/include/resolv.h
index e44e43a..4a0cf74 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[];
OpenPOWER on IntegriCloud