From 38c2395d7a905c87dc4630031849fd8e403e61bf Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Wed, 29 Jan 2020 15:02:26 -0800 Subject: Use ASNs for mapped IPv4 addresses correctly --- src/netaddress.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/netaddress.h') diff --git a/src/netaddress.h b/src/netaddress.h index 078234595c..1270e71606 100644 --- a/src/netaddress.h +++ b/src/netaddress.h @@ -80,6 +80,11 @@ class CNetAddr bool GetInAddr(struct in_addr* pipv4Addr) const; uint32_t GetNetClass() const; + //! For IPv4, mapped IPv4, SIIT translated IPv4, Teredo, 6to4 tunneled addresses, return the relevant IPv4 address as a uint32. + uint32_t GetLinkedIPv4() const; + //! Whether this address has a linked IPv4 address (see GetLinkedIPv4()). + bool HasLinkedIPv4() const; + // The AS on the BGP path to the node we use to diversify // peers in AddrMan bucketing based on the AS infrastructure. // The ip->AS mapping depends on how asmap is constructed. -- cgit v1.2.3