Home | History | Annotate | Download | only in base

Lines Matching full:ipaddress

54 class IPAddress {
56 IPAddress() : family_(AF_UNSPEC) {
60 explicit IPAddress(const in_addr &ip4) : family_(AF_INET) {
65 explicit IPAddress(const in6_addr &ip6) : family_(AF_INET6) {
69 explicit IPAddress(uint32 ip_in_host_byte_order) : family_(AF_INET) {
74 IPAddress(const IPAddress &other) : family_(other.family_) {
78 ~IPAddress() {}
80 const IPAddress & operator=(const IPAddress &other) {
86 bool operator==(const IPAddress &other) const;
87 bool operator!=(const IPAddress &other) const;
88 bool operator <(const IPAddress &other) const;
89 bool operator >(const IPAddress &other) const;
90 friend std::ostream& operator<<(std::ostream& os, const IPAddress& addr);
107 IPAddress Normalized() const;
111 IPAddress AsIPv6Address() const;
128 bool IPFromAddrInfo(struct addrinfo* info, IPAddress* out);
129 bool IPFromString(const std::string& str, IPAddress* out);
130 bool IPIsAny(const IPAddress& ip);
131 bool IPIsLoopback(const IPAddress& ip);
132 bool IPIsPrivate(const IPAddress& ip);
133 bool IPIsUnspec(const IPAddress& ip);
134 size_t HashIP(const IPAddress& ip);
137 bool IPIs6Bone(const IPAddress& ip);
138 bool IPIs6To4(const IPAddress& ip);
139 bool IPIsSiteLocal(const IPAddress& ip);
140 bool IPIsTeredo(const IPAddress& ip);
141 bool IPIsULA(const IPAddress& ip);
142 bool IPIsV4Compatibility(const IPAddress& ip);
143 bool IPIsV4Mapped(const IPAddress& ip);
146 int IPAddressPrecedence(const IPAddress& ip);
149 IPAddress TruncateIP(const IPAddress& ip, int length);
152 // byte order, in this IPAddress. Bits after the first 0 encountered are not
154 int CountIPMaskBits(IPAddress mask);