aboutsummaryrefslogtreecommitdiff
path: root/lib/urldata.h
diff options
context:
space:
mode:
authorTommie Gannert <tommie@spotify.com>2010-12-18 22:31:39 +0100
committerDaniel Stenberg <daniel@haxx.se>2010-12-18 22:33:27 +0100
commit8ab137b2bc9630ce20f45fd09b4ed2149afa45fd (patch)
treed7142eff2af46a955cc74a2929819bc2e0cbfc65 /lib/urldata.h
parentbcfb9ea34cc7cddbbf74376aa16043681e4745a7 (diff)
ares: ask for both IPv4 and IPv6 addresses
Make the c-ares resolver code ask for both IPv4 and IPv6 addresses when IPv6 is enabled. This is a workaround for the missing ares_getaddrinfo() and is a lot easier to implement. Note that as long as c-ares returns IPv4 addresses when IPv6 addresses were requested but missing, this will cause a host's IPv4 addresses to occur twice in the DNS cache. URL: http://curl.haxx.se/mail/lib-2010-12/0041.html
Diffstat (limited to 'lib/urldata.h')
-rw-r--r--lib/urldata.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/urldata.h b/lib/urldata.h
index 83b646ea5..208ff4e6b 100644
--- a/lib/urldata.h
+++ b/lib/urldata.h
@@ -479,6 +479,8 @@ struct Curl_async {
bool done; /* set TRUE when the lookup is complete */
int status; /* if done is TRUE, this is the status from the callback */
void *os_specific; /* 'struct thread_data' for Windows */
+ int num_pending; /* number of ares_gethostbyname() requests */
+ Curl_addrinfo *temp_ai; /* intermediary result while fetching c-ares parts */
};
#endif