diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-10-28 17:13:37 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-11-14 23:16:21 -0500 |
commit | ca8843df0adb088b028b5599cd3062ea608f716b (patch) | |
tree | 01ec663df0343f0e9a007981faf8fb1b6229a316 /src/or/addressmap.h | |
parent | 7908ab209350782646dfc112d346ea75974b9dec (diff) | |
download | tor-ca8843df0adb088b028b5599cd3062ea608f716b.tar.gz tor-ca8843df0adb088b028b5599cd3062ea608f716b.zip |
Refactor client_dns_set_{reverse_,}addressmap() to take a circ
We'd like these functions to be circuit-relative so that we can
implement a per-circuit DNS cache and per-circuit DNS cache rules for
proposal 205 or its successors. I'm doing this now, as a part of the
IPv6 exits code, since there are about to be a few more instances
of code using this.
Diffstat (limited to 'src/or/addressmap.h')
-rw-r--r-- | src/or/addressmap.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/addressmap.h b/src/or/addressmap.h index 911c7ac299..dd8fc9bcfc 100644 --- a/src/or/addressmap.h +++ b/src/or/addressmap.h @@ -28,14 +28,16 @@ int parse_virtual_addr_network(const char *val, int validate_only, char **msg); int client_dns_incr_failures(const char *address); void client_dns_clear_failures(const char *address); -void client_dns_set_addressmap(const char *address, uint32_t val, +void client_dns_set_addressmap(origin_circuit_t *on_circ, + const char *address, uint32_t val, const char *exitname, int ttl); const char *addressmap_register_virtual_address(int type, char *new_address); void addressmap_get_mappings(smartlist_t *sl, time_t min_expires, time_t max_expires, int want_expiry); int address_is_in_virtual_range(const char *addr); void clear_trackexithost_mappings(const char *exitname); -void client_dns_set_reverse_addressmap(const char *address, const char *v, +void client_dns_set_reverse_addressmap(origin_circuit_t *on_circ, + const char *address, const char *v, const char *exitname, int ttl); #endif |