Home
last modified time | relevance | path

Searched refs:addr6 (Results 1 – 5 of 5) sorted by relevance

/system/core/adb/sysdeps/posix/
Dnetwork.cpp49 struct sockaddr_in6* addr6 = reinterpret_cast<sockaddr_in6*>(addr); in loopback_addr6() local
50 *addrlen = sizeof(*addr6); in loopback_addr6()
52 addr6->sin6_family = AF_INET6; in loopback_addr6()
53 addr6->sin6_addr = in6addr_loopback; in loopback_addr6()
54 addr6->sin6_port = htons(port); in loopback_addr6()
/system/netd/resolv/
Dgetaddrinfo.cpp1023 const struct sockaddr_in6* addr6 = (const struct sockaddr_in6*) addr; in _get_scope() local
1024 if (IN6_IS_ADDR_MULTICAST(&addr6->sin6_addr)) { in _get_scope()
1025 return IPV6_ADDR_MC_SCOPE(&addr6->sin6_addr); in _get_scope()
1026 } else if (IN6_IS_ADDR_LOOPBACK(&addr6->sin6_addr) || in _get_scope()
1027 IN6_IS_ADDR_LINKLOCAL(&addr6->sin6_addr)) { in _get_scope()
1033 } else if (IN6_IS_ADDR_SITELOCAL(&addr6->sin6_addr)) { in _get_scope()
1082 const struct sockaddr_in6* addr6 = (const struct sockaddr_in6*) addr; in _get_label() local
1083 if (IN6_IS_ADDR_LOOPBACK(&addr6->sin6_addr)) { in _get_label()
1085 } else if (IN6_IS_ADDR_V4MAPPED(&addr6->sin6_addr)) { in _get_label()
1087 } else if (IN6_IS_ADDR_6TO4(&addr6->sin6_addr)) { in _get_label()
[all …]
/system/core/libsysutils/src/
DNetlinkEvent.cpp197 struct in6_addr *addr6 = (struct in6_addr *) RTA_DATA(rta); in parseIfAddrMessage() local
198 if (RTA_PAYLOAD(rta) < sizeof(*addr6)) { in parseIfAddrMessage()
203 inet_ntop(AF_INET6, addr6, addrstr, sizeof(addrstr)); in parseIfAddrMessage()
/system/netd/libnetdutils/include/netdutils/
DInternetAddresses.h207 in6_addr addr6() const noexcept { return mData.ip.v6; } in addr6() function
/system/netd/tests/
Dbinder_test.cpp829 auto *addr6 = reinterpret_cast<const struct sockaddr_in6*>(addr->ifa_addr); in interfaceHasAddress()
831 if (memcmp(&addr6->sin6_addr, &want->sin6_addr, sizeof(want->sin6_addr)) != 0) { in interfaceHasAddress()