summaryrefslogtreecommitdiff
path: root/src/or/router.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-03-11 17:20:43 -0400
committerNick Mathewson <nickm@torproject.org>2013-03-11 17:20:43 -0400
commit07e26005a6cb7e47f1f90fcf6a377dfaaaa56789 (patch)
tree995e5e2e2072f1ff15eb1e78dfa5c8f9cb15d18d /src/or/router.h
parent051b1e8ac4114fb23904cdf8dead72d585904e0a (diff)
downloadtor-07e26005a6cb7e47f1f90fcf6a377dfaaaa56789.tar.gz
tor-07e26005a6cb7e47f1f90fcf6a377dfaaaa56789.zip
Treat a changed IPv6 ORPort like an IPv4 one in retry_all_listeners()
Fix for bug 6026
Diffstat (limited to 'src/or/router.h')
-rw-r--r--src/or/router.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/or/router.h b/src/or/router.h
index fd2076af01..dc894d1a1f 100644
--- a/src/or/router.h
+++ b/src/or/router.h
@@ -58,8 +58,11 @@ int authdir_mode_publishes_statuses(const or_options_t *options);
int authdir_mode_tests_reachability(const or_options_t *options);
int authdir_mode_bridge(const or_options_t *options);
-uint16_t router_get_active_listener_port_by_type(int listener_type);
+uint16_t router_get_active_listener_port_by_type_af(int listener_type,
+ sa_family_t family);
uint16_t router_get_advertised_or_port(const or_options_t *options);
+uint16_t router_get_advertised_or_port_by_af(const or_options_t *options,
+ sa_family_t family);
uint16_t router_get_advertised_dir_port(const or_options_t *options,
uint16_t dirport);