15#ifdef HAVE_MODULE_RELAY
28size_t dns_cache_total_allocation(
void);
30size_t dns_cache_handle_oom(time_t now,
size_t min_remove_bytes);
41#define dns_send_resolved_error_cell(conn, answer_type) \
42 ((void)(conn), (void)(answer_type))
43#define dns_seems_to_be_broken() (0)
44#define has_dns_init_failed() (0)
45#define dns_cache_total_allocation() (0)
47#define dns_reset_correctness_checks() STMT_NIL
49#define assert_connection_edge_not_dns_pending(conn) \
51#define dump_dns_mem_usage(severity)\
53#define dns_cache_handle_oom(now, bytes) \
54 ((void)(now), (void)(bytes), 0)
55#define dns_new_consensus_params(ns) \
58#define connection_dns_remove(conn) \
61 tor_assert_nonfatal_unreached(); \
83#ifdef HAVE_EVDNS_BASE_GET_NAMESERVER_ADDR
84tor_addr_t *configured_nameserver_address(
const size_t idx);
96const char *hostname));
104 char **hostname_out));
STATIC int set_exitconn_info_from_resolve(edge_connection_t *exitconn, const cached_resolve_t *resolve, char **hostname_out)
void dns_new_consensus_params(const networkstatus_t *ns)
int dns_seems_to_be_broken(void)
STATIC void send_resolved_cell(edge_connection_t *conn, uint8_t answer_type, const cached_resolve_t *resolved)
void dns_reset_correctness_checks(void)
STATIC void send_resolved_hostname_cell(edge_connection_t *conn, const char *hostname)
STATIC void dns_cancel_pending_resolve(const char *address)
size_t number_of_configured_nameservers(void)
void connection_dns_remove(edge_connection_t *conn)
int has_dns_init_failed(void)
void dump_dns_mem_usage(int severity)
STATIC int dns_resolve_impl(edge_connection_t *exitconn, int is_resolve, or_circuit_t *oncirc, char **hostname_out, int *made_connection_pending_out, cached_resolve_t **resolve_out)
STATIC int launch_resolve(cached_resolve_t *resolve)
int dns_seems_to_be_broken_for_ipv6(void)
int dns_resolve(edge_connection_t *exitconn)
void dns_launch_correctness_checks(void)
void assert_connection_edge_not_dns_pending(edge_connection_t *conn)
Structures used in dns.c. Exposed to dns.c, and to the unit tests that declare DNS_PRIVATE.
#define MOCK_DECL(rv, funcname, arglist)
#define tor_assert_nonfatal_unreached()