diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-12-12 02:56:35 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-12-12 02:56:35 +0000 |
commit | abc1304aef4b27d3bae85adc9a82163aea069318 (patch) | |
tree | c8473ac81546444265fea7bd833b1f90e6870aa8 /src/or/eventdns.h | |
parent | fc125b1ef4fbd630da542b78078ddeb17104a370 (diff) | |
download | tor-abc1304aef4b27d3bae85adc9a82163aea069318.tar.gz tor-abc1304aef4b27d3bae85adc9a82163aea069318.zip |
r11494@Kushana: nickm | 2006-12-11 14:50:20 -0500
Export DNS types and classes in eventdns.h so that server code can use them.
svn:r9083
Diffstat (limited to 'src/or/eventdns.h')
-rw-r--r-- | src/or/eventdns.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/or/eventdns.h b/src/or/eventdns.h index fb5873b1ad..53fcd1dd47 100644 --- a/src/or/eventdns.h +++ b/src/or/eventdns.h @@ -89,6 +89,21 @@ typedef void (*evdns_request_callback_fn_type)(struct evdns_server_request *, vo #define EVDNS_ANSWER_SECTION 0 #define EVDNS_AUTHORITY_SECTION 1 #define EVDNS_ADDITIONAL_SECTION 2 + +#define EVDNS_TYPE_A 1 +#define EVDNS_TYPE_NS 2 +#define EVDNS_TYPE_CNAME 5 +#define EVDNS_TYPE_SOA 6 +#define EVDNS_TYPE_PTR 12 +#define EVDNS_TYPE_MX 15 +#define EVDNS_TYPE_TXT 16 +#define EVDNS_TYPE_AAAA 28 + +#define EVDNS_QTYPE_AXFR 252 +#define EVDNS_QTYPE_ALL 255 + +#define EVDNS_CLASS_INET 1 + struct evdns_server_port *evdns_add_server_port(int socket, int is_tcp, evdns_request_callback_fn_type callback, void *user_data); void evdns_close_server_port(struct evdns_server_port *port); |