aboutsummaryrefslogtreecommitdiff
path: root/ares/ares_ipv6.h
diff options
context:
space:
mode:
authorDominick Meglio <dcm5151@esu.edu>2005-05-16 18:06:54 +0000
committerDominick Meglio <dcm5151@esu.edu>2005-05-16 18:06:54 +0000
commit645729e94388d1db0f1b4b60b3b861a224b8c498 (patch)
tree0b328b0413d27ac3964650f2cf73d645107e9714 /ares/ares_ipv6.h
parentf425a25c988205d1ca6df8c02f87abe23f28b067 (diff)
Added ares_getnameinfo which mimics the getnameinfo API
Diffstat (limited to 'ares/ares_ipv6.h')
-rw-r--r--ares/ares_ipv6.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/ares/ares_ipv6.h b/ares/ares_ipv6.h
index 3a5bd0699..79a37c401 100644
--- a/ares/ares_ipv6.h
+++ b/ares/ares_ipv6.h
@@ -28,6 +28,17 @@ struct in6_addr
};
#endif
+#ifndef HAVE_STRUCT_SOCKADDR_IN6
+struct sockaddr_in6
+{
+ unsigned short sin6_family;
+ unsigned short sin6_port;
+ unsigned long sin6_flowinfo;
+ struct in6_addr sin6_addr;
+ unsigned int sin6_scope_id;
+};
+#endif
+
#ifndef NS_IN6ADDRSZ
#if SIZEOF_STRUCT_IN6_ADDR == 0
/* We cannot have it set to zero, so we pick a fixed value here */
@@ -45,4 +56,12 @@ struct in6_addr
#define NS_INT16SZ 2
#endif
+#ifndef IF_NAMESIZE
+#ifdef IFNAMSIZ
+#define IF_NAMESIZE IFNAMSIZ
+#else
+#define IF_NAMESIZE 256
+#endif
+#endif
+
#endif /* ARES_IPV6_H */