diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2020-01-29 15:02:26 -0800 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2020-01-31 14:51:37 -0800 |
commit | 38c2395d7a905c87dc4630031849fd8e403e61bf (patch) | |
tree | f180aea5ac3ce5a4bdf6722a0e5e94878de5f84d /src/netaddress.h | |
parent | 6f8c93731203c111f86c39eaf2102f9a825d1706 (diff) |
Use ASNs for mapped IPv4 addresses correctly
Diffstat (limited to 'src/netaddress.h')
-rw-r--r-- | src/netaddress.h | 5 |
1 files changed, 5 insertions, 0 deletions
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. |