Home
last modified time | relevance | path

Searched refs:IPSockAddr (Results 1 – 4 of 4) sorted by relevance

/system/netd/libnetdutils/include/netdutils/
DInternetAddresses.h112 class IPSockAddr; variable
163 friend class IPSockAddr; variable
231 class IPSockAddr {
235 IPSockAddr() = default;
236 IPSockAddr(const IPSockAddr&) = default;
237 IPSockAddr(IPSockAddr&&) = default;
239 explicit IPSockAddr(const IPAddress& ip) : mData(ip.mData) {} in IPSockAddr() function
240 IPSockAddr(const IPAddress& ip, in_port_t port) : mData(ip.mData) { mData.port = port; } in IPSockAddr() function
241 explicit IPSockAddr(const sockaddr_in& ipv4sa) in IPSockAddr() function
242 : IPSockAddr(IPAddress(ipv4sa.sin_addr), ntohs(ipv4sa.sin_port)) {} in IPSockAddr()
[all …]
/system/netd/libnetdutils/
DInternetAddressesTest.cpp456 const std::vector<OperatorExpectation<IPSockAddr>> kExpectations{ in TEST()
457 {EQ, IPSockAddr(), IPSockAddr()}, in TEST()
458 {EQ, IPSockAddr(IPAddress(IPV4_ANY)), IPSockAddr(IPAddress(IPV4_ANY), 0)}, in TEST()
459 {EQ, IPSockAddr(IPAddress(IPV6_ANY)), IPSockAddr(IPAddress(IPV6_ANY), 0)}, in TEST()
460 {EQ, IPSockAddr(IPAddress(FE80_1), 80), IPSockAddr(IPAddress(FE80_1), 80)}, in TEST()
461 {EQ, IPSockAddr(IPAddress(FE80_1, 17)), IPSockAddr(IPAddress(FE80_1, 17), 0)}, in TEST()
462 {LT, IPSockAddr(IPAddress(IPV4_ANY), 0), IPSockAddr(IPAddress(IPV4_ANY), 1)}, in TEST()
463 {LT, IPSockAddr(IPAddress(IPV4_ANY), 53), IPSockAddr(IPAddress(IPV4_ANY), 123)}, in TEST()
464 {LT, IPSockAddr(IPAddress(IPV4_ONES), 123), IPSockAddr(IPAddress(IPV6_ANY), 53)}, in TEST()
465 {LT, IPSockAddr(IPAddress(IPV6_ANY), 0), IPSockAddr(IPAddress(IPV6_ANY), 1)}, in TEST()
[all …]
DInternetAddresses.cpp132 std::string IPSockAddr::toString() const noexcept { in toString()
/system/netd/resolv/
DDnsProxyListener.cpp428 struct sockaddr_storage ss = netdutils::IPSockAddr(prefix.ip()); in synthesizeNat64PrefixWithARecord()
463 struct sockaddr_storage ss = netdutils::IPSockAddr(prefix.ip()); in synthesizeNat64PrefixWithARecord()
1151 struct sockaddr_storage ss = netdutils::IPSockAddr(prefix.ip()); in doDns64ReverseLookup()