diff options
author | Roger Dingledine <arma@torproject.org> | 2016-11-16 16:13:03 -0500 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2016-11-16 16:13:03 -0500 |
commit | 3bb40b213b26467df2604023ae29d915dc740128 (patch) | |
tree | 91e51fc39ee26198b5ca161272daf1732cf0420d /src/or/router.h | |
parent | caf7422871f058269b6b53e279463a130a372fc1 (diff) | |
download | tor-3bb40b213b26467df2604023ae29d915dc740128.tar.gz tor-3bb40b213b26467df2604023ae29d915dc740128.zip |
refactor router_pick_published_address to have another arg
no change in behavior except fewer log entries in the case where we use
a cached result.
Diffstat (limited to 'src/or/router.h')
-rw-r--r-- | src/or/router.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/router.h b/src/or/router.h index 73bfea1faa..c30a0301b7 100644 --- a/src/or/router.h +++ b/src/or/router.h @@ -91,7 +91,8 @@ const uint8_t *router_get_my_id_digest(void); int router_extrainfo_digest_is_me(const char *digest); int router_is_me(const routerinfo_t *router); MOCK_DECL(int,router_pick_published_address,(const or_options_t *options, - uint32_t *addr)); + uint32_t *addr, + int cache_only)); int router_build_fresh_descriptor(routerinfo_t **r, extrainfo_t **e); int router_rebuild_descriptor(int force); char *router_dump_router_to_string(routerinfo_t *router, |