|
|
@ -55,6 +55,7 @@ class CNetAddr
|
|
|
|
bool SetInternal(const std::string& name);
|
|
|
|
bool SetInternal(const std::string& name);
|
|
|
|
|
|
|
|
|
|
|
|
bool SetSpecial(const std::string &strName); // for Tor addresses
|
|
|
|
bool SetSpecial(const std::string &strName); // for Tor addresses
|
|
|
|
|
|
|
|
bool IsBindAny() const; // INADDR_ANY equivalent
|
|
|
|
bool IsIPv4() const; // IPv4 mapped address (::FFFF:0:0/96, 0.0.0.0/0)
|
|
|
|
bool IsIPv4() const; // IPv4 mapped address (::FFFF:0:0/96, 0.0.0.0/0)
|
|
|
|
bool IsIPv6() const; // IPv6 address (not mapped IPv4, not Tor)
|
|
|
|
bool IsIPv6() const; // IPv6 address (not mapped IPv4, not Tor)
|
|
|
|
bool IsRFC1918() const; // IPv4 private networks (10.0.0.0/8, 192.168.0.0/16, 172.16.0.0/12)
|
|
|
|
bool IsRFC1918() const; // IPv4 private networks (10.0.0.0/8, 192.168.0.0/16, 172.16.0.0/12)
|
|
|
|