diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2010-02-01 21:23:59 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2010-02-19 18:04:37 +0100 |
commit | be7c4f5806a29298988601f9bac5a4ebab6c000c (patch) | |
tree | d6f7a07643b8e8f2509da2b563cb27ca56fe0572 /ares_private.h | |
parent | 228e2c0a62faaedaf98a9dad10095f0980a07dfc (diff) | |
download | c-ares-master.tar.gz c-ares-master.tar.xz c-ares-master.zip |
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.h | 15 |
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 |