diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-08-16 18:47:24 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-08-16 18:47:24 +0000 |
commit | ae5ee4c92436d8e7c5ac1853c42be4dd5a314f01 (patch) | |
tree | 3cfac138b5607f6207f373073bf1b70bd9e7090a /src/or/eventdns.h | |
parent | b050ecf86c4eb236e88fa33a737c6f3b617140ad (diff) | |
download | tor-ae5ee4c92436d8e7c5ac1853c42be4dd5a314f01.tar.gz tor-ae5ee4c92436d8e7c5ac1853c42be4dd5a314f01.zip |
r7405@Kushana: nickm | 2006-08-16 14:38:46 -0400
Implement reverse DNS lookup in eventdns: add new entry point; rename old entry point; revise TODO a little; add facility for parsing dns names.
svn:r7070
Diffstat (limited to 'src/or/eventdns.h')
-rw-r--r-- | src/or/eventdns.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/or/eventdns.h b/src/or/eventdns.h index 551659c8b5..4f3fd8729a 100644 --- a/src/or/eventdns.h +++ b/src/or/eventdns.h @@ -38,6 +38,7 @@ #define DNS_ERR_TIMEOUT 67 #define DNS_IPv4_A 1 +#define DNS_PTR 2 /* XXXX ???? */ #define DNS_QUERY_NO_SEARCH 1 @@ -53,7 +54,9 @@ int eventdns_count_nameservers(void); int eventdns_clear_nameservers_and_suspend(void); int eventdns_resume(void); int eventdns_nameserver_ip_add(const char *ip_as_string); -int eventdns_resolve(const char *name, int flags, eventdns_callback_type callback, void *ptr); +int eventdns_resolve_ipv4(const char *name, int flags, eventdns_callback_type callback, void *ptr); +struct in_addr; +int eventdns_resolve_reverse(struct in_addr *addr, int flags, eventdns_callback_type callback, void *ptr); int eventdns_resolv_conf_parse(int flags, const char *); #ifdef MS_WINDOWS int eventdns_config_windows_nameservers(void); |