From fc125b1ef4fbd630da542b78078ddeb17104a370 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 12 Dec 2006 02:56:28 +0000 Subject: 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 --- src/or/eventdns.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/or/eventdns.h') diff --git a/src/or/eventdns.h b/src/or/eventdns.h index b304981244..fb5873b1ad 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); -- cgit v1.2.3-54-g00ecf