diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-08-22 16:24:43 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-08-22 16:24:43 +0000 |
commit | fc52d85b7c96a095d6f04fed1f7d7882587ceebd (patch) | |
tree | 47f0cb33e5f39489caa533d0afeec2c7b1779ec5 /src/or/eventdns.h | |
parent | 8f5642edbc9549e260b923186bc98e0fb4e8cf6e (diff) | |
download | tor-fc52d85b7c96a095d6f04fed1f7d7882587ceebd.tar.gz tor-fc52d85b7c96a095d6f04fed1f7d7882587ceebd.zip |
r17846@tombo: nickm | 2008-08-22 11:54:00 -0400
Make dns resolver code more robust: handle nameservers with IPv6 addresses, make sure names in replies match requested names, make sure origin address of reply matches the address we asked.
svn:r16621
Diffstat (limited to 'src/or/eventdns.h')
-rw-r--r-- | src/or/eventdns.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/eventdns.h b/src/or/eventdns.h index a2e0e28722..5073c797a5 100644 --- a/src/or/eventdns.h +++ b/src/or/eventdns.h @@ -263,6 +263,7 @@ int evdns_count_nameservers(void); int evdns_clear_nameservers_and_suspend(void); int evdns_resume(void); int evdns_nameserver_ip_add(const char *ip_as_string); +int evdns_nameserver_sockaddr_add(const struct sockaddr *sa, socklen_t len); int evdns_resolve_ipv4(const char *name, int flags, evdns_callback_type callback, void *ptr); int evdns_resolve_ipv6(const char *name, int flags, evdns_callback_type callback, void *ptr); struct in_addr; |