diff options
author | mruddy <mruddy@users.noreply.github.com> | 2016-04-05 22:26:38 +0000 |
---|---|---|
committer | mruddy <mruddy@users.noreply.github.com> | 2016-04-05 22:26:38 +0000 |
commit | eda3d9248971a1c3df6e6c4b23ba89be30508b51 (patch) | |
tree | 5d564f189b55874f40c1a31249f1c297388d5ac2 /src/netbase.h | |
parent | 1b2460bd5824170ab85757e35f81197199cce9d6 (diff) |
Net: Add IPv6 Link-Local Address Support
Diffstat (limited to 'src/netbase.h')
-rw-r--r-- | src/netbase.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/netbase.h b/src/netbase.h index 1db66ac27f..db736154fa 100644 --- a/src/netbase.h +++ b/src/netbase.h @@ -44,6 +44,7 @@ class CNetAddr { protected: unsigned char ip[16]; // in network byte order + uint32_t scopeId; // for scoped/link-local ipv6 addresses public: CNetAddr(); @@ -89,7 +90,7 @@ class CNetAddr std::vector<unsigned char> GetGroup() const; int GetReachabilityFrom(const CNetAddr *paddrPartner = NULL) const; - CNetAddr(const struct in6_addr& pipv6Addr); + CNetAddr(const struct in6_addr& pipv6Addr, const uint32_t scope = 0); bool GetIn6Addr(struct in6_addr* pipv6Addr) const; friend bool operator==(const CNetAddr& a, const CNetAddr& b); |