Report only the top 10 ports in exit-port stats.
[tor/rransom.git] / src / or / dns.h
blobc4fd4d1fb769e430cafa444f2b8fdcc9004b3b63
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 */
7 /**
8 * \file dns.h
9 * \brief Header file for dns.c.
10 **/
12 #ifndef _TOR_DNS_H
13 #define _TOR_DNS_H
15 int dns_init(void);
16 int has_dns_init_failed(void);
17 void dns_free_all(void);
18 uint32_t dns_clip_ttl(uint32_t ttl);
19 int dns_reset(void);
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);
30 #endif