summaryrefslogtreecommitdiff
path: root/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
commitaba0b775ea30596d8666e8e403d2efb8f647358d (patch)
tree3df88f0681b1f161b06676207a0bfe8180490386 /ares_ipv6.h
parenta6f7820033f0528cc6b7d32e7515a7d4d520238e (diff)
downloadc-ares-aba0b775ea30596d8666e8e403d2efb8f647358d.tar.gz
c-ares-aba0b775ea30596d8666e8e403d2efb8f647358d.tar.bz2
c-ares-aba0b775ea30596d8666e8e403d2efb8f647358d.zip
Added ares_getnameinfo which mimics the getnameinfo API
Diffstat (limited to 'ares_ipv6.h')
-rw-r--r--ares_ipv6.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/ares_ipv6.h b/ares_ipv6.h
index 3a5bd06..79a37c4 100644
--- a/ares_ipv6.h
+++ b/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 */