aboutsummaryrefslogtreecommitdiff
path: root/src/common/address.h
diff options
context:
space:
mode:
authorteor (Tim Wilson-Brown) <teor2345@gmail.com>2015-12-07 14:44:23 +1100
committerteor (Tim Wilson-Brown) <teor2345@gmail.com>2015-12-07 14:46:19 +1100
commit021958934f02919eabca884f935cb27a013b4ab9 (patch)
treebdb00a3e78f87826ec27504fbc872165811943ea /src/common/address.h
parentee5337e90497e31c1ef18630c4f089e70bda5269 (diff)
downloadtor-021958934f02919eabca884f935cb27a013b4ab9.tar.gz
tor-021958934f02919eabca884f935cb27a013b4ab9.zip
Consistently ignore multicast in internal reject private exit policies
Consistently ignore multicast addresses when automatically generating reject private exit policies. Closes ticket 17763. Bug fix on 10a6390deb3c9, not in any released version of Tor. Patch by "teor".
Diffstat (limited to 'src/common/address.h')
-rw-r--r--src/common/address.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/address.h b/src/common/address.h
index d2841e1c9d..34959fca11 100644
--- a/src/common/address.h
+++ b/src/common/address.h
@@ -221,6 +221,7 @@ int tor_addr_is_internal_(const tor_addr_t *ip, int for_listening,
const char *filename, int lineno);
#define tor_addr_is_internal(addr, for_listening) \
tor_addr_is_internal_((addr), (for_listening), SHORT_FILE__, __LINE__)
+int tor_addr_is_multicast(const tor_addr_t *a);
/** Longest length that can be required for a reverse lookup name. */
/* 32 nybbles, 32 dots, 8 characters of "ip6.arpa", 1 NUL: 73 characters. */
@@ -311,7 +312,6 @@ tor_addr_port_t *tor_addr_port_new(const tor_addr_t *addr, uint16_t port);
#ifdef ADDRESS_PRIVATE
MOCK_DECL(smartlist_t *,get_interface_addresses_raw,(int severity));
-STATIC int tor_addr_is_multicast(const tor_addr_t *a);
MOCK_DECL(int,get_interface_address6_via_udp_socket_hack,(int severity,
sa_family_t family,
tor_addr_t *addr));