aboutsummaryrefslogtreecommitdiff
path: root/src/feature/relay/router.h
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2020-04-30 06:47:46 +1000
committerteor <teor@torproject.org>2020-04-30 06:54:42 +1000
commit15a4180a7e041531d6923a41684e9e6ffc833760 (patch)
tree3868606983450a146dd001f5dbc5b8d5b0f9d80e /src/feature/relay/router.h
parent066d2deb3d322e960600d80739739199d8c4cfa6 (diff)
downloadtor-15a4180a7e041531d6923a41684e9e6ffc833760.tar.gz
tor-15a4180a7e041531d6923a41684e9e6ffc833760.zip
relay: Refactor can extend over IPv6 checks
Split "can extend over IPv6" and "has advertised IPv6 ORPort" into separate functions. They currently have the same result, but this may change in 33818 with ExtendAllowIPv6Addresses. Part of 33817.
Diffstat (limited to 'src/feature/relay/router.h')
-rw-r--r--src/feature/relay/router.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/feature/relay/router.h b/src/feature/relay/router.h
index 1a262a6799..39c550dd25 100644
--- a/src/feature/relay/router.h
+++ b/src/feature/relay/router.h
@@ -68,8 +68,8 @@ uint16_t router_get_active_listener_port_by_type_af(int listener_type,
uint16_t router_get_advertised_or_port(const or_options_t *options);
void router_get_advertised_ipv6_or_ap(const or_options_t *options,
tor_addr_port_t *ipv6_ap_out);
-MOCK_DECL(bool, router_has_advertised_ipv6_orport,(
- const or_options_t *options));
+bool router_has_advertised_ipv6_orport(const or_options_t *options);
+MOCK_DECL(bool, router_can_extend_over_ipv6,(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,