diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-12-19 18:52:00 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-12-19 18:52:00 +0000 |
commit | 029be5ad02cfec8d9b96b3466a03a353183f561a (patch) | |
tree | 1cd1a87b153e8aabfef10d8d6d8f8813f6e1bdf0 /src/or/eventdns.c | |
parent | efb863189cd4500e9cdaf8f5665f9756ae12dfde (diff) | |
download | tor-029be5ad02cfec8d9b96b3466a03a353183f561a.tar.gz tor-029be5ad02cfec8d9b96b3466a03a353183f561a.zip |
Move in-addr.arpa parsing and generation into address.c, and simplify the code that does it elsewhere. Incidentally, this lets exit servers answer requests for ip6.arpa addresses.
svn:r17707
Diffstat (limited to 'src/or/eventdns.c')
-rw-r--r-- | src/or/eventdns.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/eventdns.c b/src/or/eventdns.c index 2b28b2bf94..cd486caaa1 100644 --- a/src/or/eventdns.c +++ b/src/or/eventdns.c @@ -2534,7 +2534,7 @@ int evdns_resolve_ipv6(const char *name, int flags, } } -int evdns_resolve_reverse(struct in_addr *in, int flags, evdns_callback_type callback, void *ptr) { +int evdns_resolve_reverse(const struct in_addr *in, int flags, evdns_callback_type callback, void *ptr) { char buf[32]; struct request *req; u32 a; @@ -2552,7 +2552,7 @@ int evdns_resolve_reverse(struct in_addr *in, int flags, evdns_callback_type cal return 0; } -int evdns_resolve_reverse_ipv6(struct in6_addr *in, int flags, evdns_callback_type callback, void *ptr) { +int evdns_resolve_reverse_ipv6(const struct in6_addr *in, int flags, evdns_callback_type callback, void *ptr) { /* 32 nybbles, 32 periods, "ip6.arpa", NUL. */ char buf[73]; char *cp; |