summaryrefslogtreecommitdiffstats
path: root/ares_private.h
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2010-02-01 21:23:59 +0100
committerJakub Hrozek <jhrozek@redhat.com>2010-02-19 18:04:37 +0100
commitbe7c4f5806a29298988601f9bac5a4ebab6c000c (patch)
treed6f7a07643b8e8f2509da2b563cb27ca56fe0572 /ares_private.h
parent228e2c0a62faaedaf98a9dad10095f0980a07dfc (diff)
downloadc-ares-master.tar.gz
c-ares-master.tar.xz
c-ares-master.zip
Allow the use of IPv6 nameserversHEADmaster
This patch allows the use of IPv6 addresses for nameserves in both /etc/resolv.conf and by using the ares_set_nameservers() API.
Diffstat (limited to 'ares_private.h')
-rw-r--r--ares_private.h15
1 files changed, 4 insertions, 11 deletions
diff --git a/ares_private.h b/ares_private.h
index 4726d7a..083de5a 100644
--- a/ares_private.h
+++ b/ares_private.h
@@ -110,16 +110,6 @@
# define writev(s,ptr,cnt) ares_writev(s,ptr,cnt)
#endif
-struct ares_addr {
- int family;
- union {
- struct in_addr addr4;
- struct in6_addr addr6;
- } addr;
-};
-#define addrV4 addr.addr4
-#define addrV6 addr.addr6
-
struct query;
struct send_request {
@@ -137,7 +127,8 @@ struct send_request {
};
struct server_state {
- struct in_addr addr;
+ struct ares_addr addr;
+
ares_socket_t udp_socket;
ares_socket_t tcp_socket;
@@ -319,6 +310,8 @@ struct timeval ares__tvnow(void);
int ares__expand_name_for_response(const unsigned char *encoded,
const unsigned char *abuf, int alen,
char **s, long *enclen);
+void ares__free_servers(ares_channel channel);
+
#if 0 /* Not used */
long ares__tvdiff(struct timeval t1, struct timeval t2);
#endif