From 734fad410368951e8f375a78bc8789d24cbe9c52 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Tue, 27 Mar 2012 15:00:34 +0200 Subject: Make relays handle an address suggestion from a directory server giving an IPv6 address. last_guessed_ip becomes a tor_addr_t. Most parts of router_new_address_suggestion() learns about IPv6 (resolve_my_address() is still IPv4 only). --- src/common/address.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/common') diff --git a/src/common/address.h b/src/common/address.h index 4568c32bf..ede035d64 100644 --- a/src/common/address.h +++ b/src/common/address.h @@ -38,6 +38,8 @@ typedef struct tor_addr_port_t uint16_t port; } tor_addr_port_t; +#define TOR_ADDR_NULL {AF_UNSPEC, {{0}}}; + static INLINE const struct in6_addr *tor_addr_to_in6(const tor_addr_t *a); static INLINE uint32_t tor_addr_to_ipv4n(const tor_addr_t *a); static INLINE uint32_t tor_addr_to_ipv4h(const tor_addr_t *a); -- cgit v1.2.3