Lines Matching refs:ip

43     } ip{.v6 = IN6ADDR_ANY_INIT};  // written and read in network-byte order
58 const in_addr v4a = a.ip.v4;
59 const in_addr v4b = b.ip.v4;
63 const in6_addr v6a = a.ip.v6;
64 const in6_addr v6b = b.ip.v6;
81 const in_addr v4a = a.ip.v4;
82 const in_addr v4b = b.ip.v4;
87 const in6_addr v6a = a.ip.v6;
88 const in6_addr v6b = b.ip.v6;
126 static bool forString(const std::string& repr, IPAddress* ip);
128 IPAddress ip; in forString() local
129 if (!forString(repr, &ip)) return IPAddress(); in forString()
130 return ip; in forString()
148 IPAddress(const IPAddress& ip, uint32_t scope_id) : IPAddress(ip) { in IPAddress() argument
149 mData.scope_id = (family() == AF_INET6 && usesScopedIds(mData.ip.v6)) ? scope_id : 0U; in IPAddress()
160 friend std::ostream& operator<<(std::ostream& os, const IPAddress& ip) {
161 os << ip.toString();
184 if (usesScopedIds(ipdata.ip.v6)) mData.scope_id = ipdata.scope_id; in IPAddress()
209 explicit IPPrefix(const IPAddress& ip) : mData(ip.mData) {} in IPPrefix() argument
214 IPPrefix(const IPAddress& ip, int length);
220 IPAddress ip() const noexcept { return IPAddress(mData); } in ip() function
221 in_addr addr4() const noexcept { return mData.ip.v4; } in addr4()
222 in6_addr addr6() const noexcept { return mData.ip.v6; } in addr6()
271 explicit IPSockAddr(const IPAddress& ip) : mData(ip.mData) {} in IPSockAddr() argument
272 IPSockAddr(const IPAddress& ip, in_port_t port) : mData(ip.mData) { mData.port = port; } in IPSockAddr() argument
282 IPAddress ip() const noexcept { return IPAddress(mData); } in ip() function
291 reinterpret_cast<sockaddr_in*>(&ss)->sin_addr = mData.ip.v4; in sockaddr_storage()
295 reinterpret_cast<sockaddr_in6*>(&ss)->sin6_addr = mData.ip.v6; in sockaddr_storage()