aboutsummaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-02-21 18:45:11 +0000
committerNick Mathewson <nickm@torproject.org>2008-02-21 18:45:11 +0000
commit5c03f82a650e3986c37466197d79d85906cce671 (patch)
treee3dd766777ef56175d09c3c76e51c8535746ba46 /src/or/or.h
parent6b50f5ae5d1d76f151b7f4ca6cb44cbe6dc05fc3 (diff)
downloadtor-5c03f82a650e3986c37466197d79d85906cce671.tar.gz
tor-5c03f82a650e3986c37466197d79d85906cce671.zip
r18345@catbus: nickm | 2008-02-21 13:45:04 -0500
Do the last part of arma's fix for bug 437: Track the origin of every addrmap, and use this info so we can remove all the trackhostexits-originated mappings for a given exit. svn:r13660
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/or/or.h b/src/or/or.h
index 1c5a16f598..b0ec610737 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -2816,8 +2816,12 @@ void addressmap_clear_transient(void);
void addressmap_free_all(void);
int addressmap_rewrite(char *address, size_t maxlen, time_t *expires_out);
int addressmap_have_mapping(const char *address);
+typedef enum {
+ ADDRMAPSRC_CONTROLLER, ADDRMAPSRC_TORRC, ADDRMAPSRC_TRACKEXIT,
+ ADDRMAPSRC_DNS,
+} addressmap_entry_source_t;
void addressmap_register(const char *address, char *new_address,
- time_t expires);
+ time_t expires, addressmap_entry_source_t source);
int parse_virtual_addr_network(const char *val, int validate_only,
char **msg);
int client_dns_incr_failures(const char *address);