diff options
author | Sebastian Hahn <sebastian@torproject.org> | 2010-07-22 12:24:25 +0200 |
---|---|---|
committer | Sebastian Hahn <sebastian@torproject.org> | 2010-07-27 07:58:16 +0200 |
commit | dc2f1666ff5285823ad6c7e3df59b8022aff936c (patch) | |
tree | 4c8275917b40ea30437e72e52d6b3a3450fc2962 /src/or/dns.h | |
parent | 85f7d544187d48b8cb9516e964b35e1999a15968 (diff) | |
download | tor-dc2f1666ff5285823ad6c7e3df59b8022aff936c.tar.gz tor-dc2f1666ff5285823ad6c7e3df59b8022aff936c.zip |
Create dns.h
Diffstat (limited to 'src/or/dns.h')
-rw-r--r-- | src/or/dns.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/or/dns.h b/src/or/dns.h new file mode 100644 index 0000000000..c4fd4d1fb7 --- /dev/null +++ b/src/or/dns.h @@ -0,0 +1,31 @@ +/* Copyright (c) 2001 Matej Pfajfar. + * Copyright (c) 2001-2004, Roger Dingledine. + * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson. + * Copyright (c) 2007-2010, The Tor Project, Inc. */ +/* See LICENSE for licensing information */ + +/** + * \file dns.h + * \brief Header file for dns.c. + **/ + +#ifndef _TOR_DNS_H +#define _TOR_DNS_H + +int dns_init(void); +int has_dns_init_failed(void); +void dns_free_all(void); +uint32_t dns_clip_ttl(uint32_t ttl); +int dns_reset(void); +void connection_dns_remove(edge_connection_t *conn); +void assert_connection_edge_not_dns_pending(edge_connection_t *conn); +void assert_all_pending_dns_resolves_ok(void); +void dns_cancel_pending_resolve(const char *question); +int dns_resolve(edge_connection_t *exitconn); +void dns_launch_correctness_checks(void); +int dns_seems_to_be_broken(void); +void dns_reset_correctness_checks(void); +void dump_dns_mem_usage(int severity); + +#endif + |