aboutsummaryrefslogtreecommitdiff
path: root/src/or/dns.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-10-27 16:34:49 -0400
committerNick Mathewson <nickm@torproject.org>2012-11-14 23:16:23 -0500
commitb7843ca5544e741e74fe5f93fb49579e01b468c8 (patch)
treef1397706d25d1ba0f7060a89fcfeb72154026971 /src/or/dns.h
parent00633b944672458bdfd3d79bab4e1230cee4a522 (diff)
downloadtor-b7843ca5544e741e74fe5f93fb49579e01b468c8.tar.gz
tor-b7843ca5544e741e74fe5f93fb49579e01b468c8.zip
Make DNS callback pass IPv6 answers to dns_answer_found
Also, count ipv6 timeouts vs others. If we have too many ipv6 requests time out, then we could be degrading performance because of a broken DNS server that ignores AAAA requests. Other cases in which we never learn an AAAA address aren't so bad, since they don't slow A (ipv4) answers down very much.
Diffstat (limited to 'src/or/dns.h')
-rw-r--r--src/or/dns.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/dns.h b/src/or/dns.h
index 441a6c3506..d2f6614e64 100644
--- a/src/or/dns.h
+++ b/src/or/dns.h
@@ -24,6 +24,7 @@ void dns_cancel_pending_resolve(const char *question);
int dns_resolve(edge_connection_t *exitconn);
void dns_launch_correctness_checks(void);
int dns_seems_to_be_broken(void);
+int dns_seems_to_be_broken_for_ipv6(void);
void dns_reset_correctness_checks(void);
void dump_dns_mem_usage(int severity);