Home
last modified time | relevance | path

Searched refs:ifa_addr (Results 1 – 3 of 3) sorted by relevance

/bionic/tests/
Difaddrs_test.cpp52 if (addr->ifa_addr && addr->ifa_addr->sa_family == AF_INET) lo_inet4 = addr; in TEST()
53 else if (addr->ifa_addr && addr->ifa_addr->sa_family == AF_INET6) lo_inet6 = addr; in TEST()
54 else if (addr->ifa_addr && addr->ifa_addr->sa_family == AF_PACKET) lo_packet = addr; in TEST()
60 const sockaddr_in* sa_inet4 = reinterpret_cast<const sockaddr_in*>(lo_inet4->ifa_addr); in TEST()
65 const sockaddr_in6* sa_inet6 = reinterpret_cast<const sockaddr_in6*>(lo_inet6->ifa_addr); in TEST()
70 const sockaddr_ll* sa_ll = reinterpret_cast<const sockaddr_ll*>(lo_packet->ifa_addr); in TEST()
84 int family = addr->ifa_addr ? addr->ifa_addr->sa_family : in TEST()
146 if (addr->ifa_name && addr->ifa_addr && addr->ifa_addr->sa_family == AF_INET) { in TEST()
147 auto sock = reinterpret_cast<sockaddr_in*>(addr->ifa_addr); in TEST()
230 int family = ifa->ifa_addr ? ifa->ifa_addr->sa_family : in TEST()
[all …]
/bionic/libc/include/
Difaddrs.h54 struct sockaddr* ifa_addr; member
/bionic/libc/bionic/
Difaddrs.cpp73 if (ifa.ifa_addr == nullptr) { in SetAddress()
76 ifa.ifa_addr = CopyAddress(family, data, byteCount, &addr); in SetAddress()
99 if (ifa.ifa_addr != nullptr) { in SetLocalAddress()
103 ifa.ifa_addr = CopyAddress(family, data, byteCount, &addr); in SetLocalAddress()