aboutsummaryrefslogtreecommitdiff
path: root/src/app/config/resolve_addr.h
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2020-07-06 09:40:03 -0400
committerDavid Goulet <dgoulet@torproject.org>2020-07-07 10:41:10 -0400
commitf57ce632fe3d391e62d288c0b8acd0001bf670df (patch)
tree10b5ff619ffb6f17ac7c1d3a84c2a9da3511c215 /src/app/config/resolve_addr.h
parent78bc52c47c8d7c3747ea3335b571fd98a15a47b1 (diff)
downloadtor-f57ce632fe3d391e62d288c0b8acd0001bf670df.tar.gz
tor-f57ce632fe3d391e62d288c0b8acd0001bf670df.zip
addr: Rename and make resolved_addr_set_last() function public
Rename the static function update_resolved_cache() to resolved_addr_set_last() and make it public. We are about to use it in order to record any suggested address from a NETINFO cell. Related to #40022 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/app/config/resolve_addr.h')
-rw-r--r--src/app/config/resolve_addr.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/app/config/resolve_addr.h b/src/app/config/resolve_addr.h
index 54f55ba36c..055d59a8f1 100644
--- a/src/app/config/resolve_addr.h
+++ b/src/app/config/resolve_addr.h
@@ -17,6 +17,8 @@ bool find_my_address(const or_options_t *options, int family,
void resolved_addr_get_last(int family, tor_addr_t *addr_out);
void resolved_addr_reset_last(int family);
+void resolved_addr_set_last(const tor_addr_t *addr, const char *method_used,
+ const char *hostname_used);
MOCK_DECL(bool, is_local_to_resolve_addr, (const tor_addr_t *addr));