mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +01:00
Remove some unused defines in dns.c
This commit is contained in:
parent
7197c9f14a
commit
6b36142bcc
@ -87,12 +87,6 @@ struct evdns_request;
|
|||||||
* that the resolver is wedged? */
|
* that the resolver is wedged? */
|
||||||
#define RESOLVE_MAX_TIMEOUT 300
|
#define RESOLVE_MAX_TIMEOUT 300
|
||||||
|
|
||||||
/** Possible outcomes from hostname lookup: permanent failure,
|
|
||||||
* transient (retryable) failure, and success. */
|
|
||||||
#define DNS_RESOLVE_FAILED_TRANSIENT 1
|
|
||||||
#define DNS_RESOLVE_FAILED_PERMANENT 2
|
|
||||||
#define DNS_RESOLVE_SUCCEEDED 3
|
|
||||||
|
|
||||||
/** Our evdns_base; this structure handles all our name lookups. */
|
/** Our evdns_base; this structure handles all our name lookups. */
|
||||||
static struct evdns_base *the_evdns_base = NULL;
|
static struct evdns_base *the_evdns_base = NULL;
|
||||||
|
|
||||||
@ -1188,8 +1182,7 @@ is_test_address(const char *address)
|
|||||||
* the outcome of a DNS resolve: tell all pending connections about the result
|
* the outcome of a DNS resolve: tell all pending connections about the result
|
||||||
* of the lookup, and cache the value. (<b>address</b> is a NUL-terminated
|
* of the lookup, and cache the value. (<b>address</b> is a NUL-terminated
|
||||||
* string containing the address to look up; <b>addr</b> is an IPv4 address in
|
* string containing the address to look up; <b>addr</b> is an IPv4 address in
|
||||||
* host order; <b>outcome</b> is one of
|
* host order; DOCDOC
|
||||||
* DNS_RESOLVE_{FAILED_TRANSIENT|FAILED_PERMANENT|SUCCEEDED}.
|
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
dns_found_answer(const char *address, uint8_t query_type,
|
dns_found_answer(const char *address, uint8_t query_type,
|
||||||
|
Loading…
Reference in New Issue
Block a user