Home | History | Annotate | Download | only in base

Lines Matching full:ipaddress

37 class IPAddress {
39 IPAddress() : family_(AF_UNSPEC) {
43 explicit IPAddress(const in_addr &ip4) : family_(AF_INET) {
48 explicit IPAddress(const in6_addr &ip6) : family_(AF_INET6) {
52 explicit IPAddress(uint32 ip_in_host_byte_order) : family_(AF_INET) {
57 IPAddress(const IPAddress &other) : family_(other.family_) {
61 ~IPAddress() {}
63 const IPAddress & operator=(const IPAddress &other) {
69 bool operator==(const IPAddress &other) const;
70 bool operator!=(const IPAddress &other) const;
71 bool operator <(const IPAddress &other) const;
72 bool operator >(const IPAddress &other) const;
73 friend std::ostream& operator<<(std::ostream& os, const IPAddress& addr);
90 IPAddress Normalized() const;
94 IPAddress AsIPv6Address() const;
111 bool IPFromAddrInfo(struct addrinfo* info, IPAddress* out);
112 bool IPFromString(const std::string& str, IPAddress* out);
113 bool IPIsAny(const IPAddress& ip);
114 bool IPIsLoopback(const IPAddress& ip);
115 bool IPIsPrivate(const IPAddress& ip);
116 bool IPIsUnspec(const IPAddress& ip);
117 size_t HashIP(const IPAddress& ip);
120 bool IPIs6Bone(const IPAddress& ip);
121 bool IPIs6To4(const IPAddress& ip);
122 bool IPIsSiteLocal(const IPAddress& ip);
123 bool IPIsTeredo(const IPAddress& ip);
124 bool IPIsULA(const IPAddress& ip);
125 bool IPIsV4Compatibility(const IPAddress& ip);
126 bool IPIsV4Mapped(const IPAddress& ip);
129 int IPAddressPrecedence(const IPAddress& ip);
132 IPAddress TruncateIP(const IPAddress& ip, int length);
135 // byte order, in this IPAddress. Bits after the first 0 encountered are not
137 int CountIPMaskBits(IPAddress mask);