Changeset View
Changeset View
Standalone View
Standalone View
src/netaddress.h
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | public: | ||||
/** | /** | ||||
* Transform an arbitrary string into a non-routable ipv6 address. | * Transform an arbitrary string into a non-routable ipv6 address. | ||||
* Useful for mapping resolved addresses back to their source. | * Useful for mapping resolved addresses back to their source. | ||||
*/ | */ | ||||
bool SetInternal(const std::string &name); | bool SetInternal(const std::string &name); | ||||
// for Tor addresses | // for Tor addresses | ||||
bool SetSpecial(const std::string &strName); | bool SetSpecial(const std::string &strName); | ||||
// INADDR_ANY equivalent | |||||
bool IsBindAny() const; | |||||
// IPv4 mapped address (::FFFF:0:0/96, 0.0.0.0/0) | // IPv4 mapped address (::FFFF:0:0/96, 0.0.0.0/0) | ||||
bool IsIPv4() const; | bool IsIPv4() const; | ||||
// IPv6 address (not mapped IPv4, not Tor) | // IPv6 address (not mapped IPv4, not Tor) | ||||
bool IsIPv6() const; | bool IsIPv6() const; | ||||
// IPv4 private networks (10.0.0.0/8, 192.168.0.0/16, 172.16.0.0/12) | // IPv4 private networks (10.0.0.0/8, 192.168.0.0/16, 172.16.0.0/12) | ||||
bool IsRFC1918() const; | bool IsRFC1918() const; | ||||
// IPv4 inter-network communications (192.18.0.0/15) | // IPv4 inter-network communications (192.18.0.0/15) | ||||
bool IsRFC2544() const; | bool IsRFC2544() const; | ||||
▲ Show 20 Lines • Show All 132 Lines • Show Last 20 Lines |