Searched refs:IPAddress (Results 1 – 4 of 4) sorted by relevance
/system/netd/libnetdutils/ |
D | InternetAddressesTest.cpp | 94 const std::vector<OperatorExpectation<IPAddress>> kExpectations{ in TEST() 95 {EQ, IPAddress(), IPAddress()}, in TEST() 96 {EQ, IPAddress(IPV4_ONES), IPAddress(IPV4_ONES)}, in TEST() 97 {EQ, IPAddress(IPV6_ONES), IPAddress(IPV6_ONES)}, in TEST() 98 {EQ, IPAddress(FE80_1), IPAddress(FE80_1)}, in TEST() 99 {EQ, IPAddress(FE80_2), IPAddress(FE80_2)}, in TEST() 100 {LT, IPAddress(), IPAddress(IPV4_ANY)}, in TEST() 101 {LT, IPAddress(), IPAddress(IPV4_ONES)}, in TEST() 102 {LT, IPAddress(), IPAddress(IPV6_ANY)}, in TEST() 103 {LT, IPAddress(), IPAddress(IPV6_ONES)}, in TEST() [all …]
|
D | InternetAddresses.cpp | 31 std::string IPAddress::toString() const noexcept { in toString() 58 bool IPAddress::forString(const std::string& repr, IPAddress* ip) { in forString() 74 if (ip) *ip = IPAddress(sin->sin_addr); in forString() 79 if (ip) *ip = IPAddress(sin6->sin6_addr, sin6->sin6_scope_id); in forString() 91 IPPrefix::IPPrefix(const IPAddress& ip, int length) : IPPrefix(ip) { in IPPrefix()
|
/system/netd/libnetdutils/include/netdutils/ |
D | InternetAddresses.h | 114 class IPAddress { 116 static bool forString(const std::string& repr, IPAddress* ip); 117 static IPAddress forString(const std::string& repr) { in forString() 118 IPAddress ip; in forString() 119 if (!forString(repr, &ip)) return IPAddress(); in forString() 123 IPAddress() = default; 124 IPAddress(const IPAddress&) = default; 125 IPAddress(IPAddress&&) = default; 127 explicit IPAddress(const in_addr& ipv4) in IPAddress() function 129 explicit IPAddress(const in6_addr& ipv6) in IPAddress() function [all …]
|
/system/netd/resolv/ |
D | Dns64Configuration.cpp | 40 using netdutils::IPAddress; 177 const IPAddress ipv6(reinterpret_cast<sockaddr_in6*>(result->ai_addr)->sin6_addr); in doRfc7050PrefixDiscovery()
|