2 /* Copyright (C) 2005 by Dominick Meglio
4 * Permission to use, copy, modify, and distribute this
5 * software and its documentation for any purpose and without
6 * fee is hereby granted, provided that the above copyright
7 * notice appear in all copies and that both that copyright
8 * notice and this permission notice appear in supporting
9 * documentation, and that the name of M.I.T. not be used in
10 * advertising or publicity pertaining to distribution of the
11 * software without specific, written prior permission.
12 * M.I.T. makes no representations about the suitability of
13 * this software for any purpose. It is provided "as is"
14 * without express or implied warranty.
21 #define PF_INET6 AF_INET6
24 #ifndef HAVE_STRUCT_SOCKADDR_IN6
27 unsigned short sin6_family;
28 unsigned short sin6_port;
29 unsigned long sin6_flowinfo;
30 struct ares_in6_addr sin6_addr;
31 unsigned int sin6_scope_id;
35 #ifndef HAVE_STRUCT_ADDRINFO
42 ares_socklen_t ai_addrlen; /* Follow rfc3493 struct addrinfo */
44 struct sockaddr *ai_addr;
45 struct addrinfo *ai_next;
50 #ifndef HAVE_STRUCT_IN6_ADDR
51 /* We cannot have it set to zero, so we pick a fixed value here */
52 #define NS_IN6ADDRSZ 16
54 #define NS_IN6ADDRSZ sizeof(struct in6_addr)
59 #define NS_INADDRSZ sizeof(struct in_addr)
68 #define IF_NAMESIZE IFNAMSIZ
70 #define IF_NAMESIZE 256
74 /* Defined in inet_net_pton.c for no particular reason. */
75 extern const struct ares_in6_addr ares_in6addr_any; /* :: */
78 #endif /* ARES_IPV6_H */