diff options
author | teor <teor@torproject.org> | 2020-04-29 15:56:40 +1000 |
---|---|---|
committer | teor <teor@torproject.org> | 2020-04-29 22:43:09 +1000 |
commit | c3e058dfac1cbc7cb0dee5cdb1bdc61c1dc0f4fa (patch) | |
tree | c696127643a2626613b144a4e7d7e15434da24c3 /src/feature/relay/router.h | |
parent | a0b12f3cd40fc00c9bdbb1ff01b0d074673a7524 (diff) | |
download | tor-c3e058dfac1cbc7cb0dee5cdb1bdc61c1dc0f4fa.tar.gz tor-c3e058dfac1cbc7cb0dee5cdb1bdc61c1dc0f4fa.zip |
relay: Choose between IPv4 and IPv6 extends at random
When an EXTEND2 cell has an IPv4 and an IPv6 address, choose one of them
uniformly at random.
Part of 33817.
Diffstat (limited to 'src/feature/relay/router.h')
-rw-r--r-- | src/feature/relay/router.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/feature/relay/router.h b/src/feature/relay/router.h index d1b4ce5f8f..c3a93cc0aa 100644 --- a/src/feature/relay/router.h +++ b/src/feature/relay/router.h @@ -68,6 +68,7 @@ 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); +bool router_has_advertised_ipv6_orport(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, |