Lines Matching refs:ifa_addr
52 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()
239 if (ifa->ifa_addr) print_sockaddr_ll("hwaddr", ifa->ifa_addr); in TEST()
240 if (ifa->ifa_broadaddr) print_sockaddr_ll("hwbroad", ifa->ifa_addr); in TEST()
242 if (ifa->ifa_addr) print_sockaddr_inet("address", ifa->ifa_addr); in TEST()
260 if (ifa->ifa_addr && ifa->ifa_addr->sa_family == AF_INET6) { in TEST()
261 sockaddr_in6* sa6 = reinterpret_cast<sockaddr_in6*>(ifa->ifa_addr); in TEST()