diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-05-24 20:31:27 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-05-24 20:31:27 +0000 |
commit | 17830bc03ba26dc90258f436fbd9786cf769027c (patch) | |
tree | 90e27486b71c7c4a5c8fbfdebab04a5272293d82 /src/or/eventdns.h | |
parent | a312afd67ed94422c1e23d67483ed6b67c39da28 (diff) | |
download | tor-17830bc03ba26dc90258f436fbd9786cf769027c.tar tor-17830bc03ba26dc90258f436fbd9786cf769027c.tar.gz |
r12941@catbus: nickm | 2007-05-24 16:25:00 -0400
Fix some eventdns dns server bugs, and add a new eventdns function to get the address of whoever requested this lookup.
svn:r10316
Diffstat (limited to 'src/or/eventdns.h')
-rw-r--r-- | src/or/eventdns.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/eventdns.h b/src/or/eventdns.h index 427503154..058b4d1b7 100644 --- a/src/or/eventdns.h +++ b/src/or/eventdns.h @@ -323,6 +323,9 @@ int evdns_server_request_add_aaaa_reply(struct evdns_server_request *req, const int evdns_server_request_add_ptr_reply(struct evdns_server_request *req, struct in_addr *in, const char *inaddr_name, const char *hostname, int ttl); int evdns_server_request_add_cname_reply(struct evdns_server_request *req, const char *name, const char *cname, int ttl); +struct sockaddr; +int evdns_server_request_get_requesting_addr(struct evdns_server_request *req, struct sockaddr *sa, socklen_t addr_len); + int evdns_server_request_respond(struct evdns_server_request *req, int err); int evdns_server_request_drop(struct evdns_server_request *req); |