1 /* Copyright (c) 2001 Matej Pfajfar.
2 * Copyright (c) 2001-2004, Roger Dingledine.
3 * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
4 * Copyright (c) 2007-2010, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
9 * \brief Header file for dns.c.
16 int has_dns_init_failed(void);
17 void dns_free_all(void);
18 uint32_t dns_clip_ttl(uint32_t ttl
);
20 void connection_dns_remove(edge_connection_t
*conn
);
21 void assert_connection_edge_not_dns_pending(edge_connection_t
*conn
);
22 void assert_all_pending_dns_resolves_ok(void);
23 void dns_cancel_pending_resolve(const char *question
);
24 int dns_resolve(edge_connection_t
*exitconn
);
25 void dns_launch_correctness_checks(void);
26 int dns_seems_to_be_broken(void);
27 void dns_reset_correctness_checks(void);
28 void dump_dns_mem_usage(int severity
);