aboutsummaryrefslogtreecommitdiff
path: root/src/or/eventdns.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-12-12 02:56:28 +0000
committerNick Mathewson <nickm@torproject.org>2006-12-12 02:56:28 +0000
commitfc125b1ef4fbd630da542b78078ddeb17104a370 (patch)
tree918b1f50e1bc3ba1b7f3a34f79c89694709a51e2 /src/or/eventdns.h
parente53bca15e7fd66aea802d657030e14ad5eb3b0d5 (diff)
downloadtor-fc125b1ef4fbd630da542b78078ddeb17104a370.tar
tor-fc125b1ef4fbd630da542b78078ddeb17104a370.tar.gz
r11493@Kushana: nickm | 2006-12-11 14:28:42 -0500
Oops; apparently DNS replies are supposed to include the questions. Revise "add_ptr_reply" to accept an inaddr_arpa name instead of just the sockaddr_in. Also, add a "-servertest" function to the test code to see whether the DNS server logic is working. svn:r9082
Diffstat (limited to 'src/or/eventdns.h')
-rw-r--r--src/or/eventdns.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/eventdns.h b/src/or/eventdns.h
index b30498124..fb5873b1a 100644
--- a/src/or/eventdns.h
+++ b/src/or/eventdns.h
@@ -95,7 +95,7 @@ void evdns_close_server_port(struct evdns_server_port *port);
int evdns_request_add_reply(struct evdns_server_request *req, int section, const char *name, int type, int class, int ttl, int datalen, int is_name, const char *data);
int evdns_request_add_a_reply(struct evdns_server_request *req, const char *name, int n, void *addrs, int ttl);
int evdns_request_add_aaaa_reply(struct evdns_server_request *req, const char *name, int n, void *addrs, int ttl);
-int evdns_request_add_ptr_reply(struct evdns_server_request *req, struct in_addr *in, const char *name, int ttl);
+int evdns_request_add_ptr_reply(struct evdns_server_request *req, struct in_addr *in, const char *inaddr_name, const char *hostname, int ttl);
int evdns_request_add_cname_reply(struct evdns_server_request *req, const char *name, const char *cname, int ttl);
int evdns_request_respond(struct evdns_server_request *req, int flags);