Lines Matching refs:ifa
227 for (ifaddrs* ifa = addrs; ifa != nullptr; ifa = ifa->ifa_next) { in TEST() local
228 int family = ifa->ifa_addr ? ifa->ifa_addr->sa_family : in TEST()
229 ifa->ifa_broadaddr ? ifa->ifa_broadaddr->sa_family : AF_UNSPEC; in TEST()
233 ifa->ifa_name, FamilyToName(family), family, in TEST()
234 ifa->ifa_flags, FlagsToString(ifa->ifa_flags).c_str()); in TEST()
237 if (ifa->ifa_addr) print_sockaddr_ll("hwaddr", ifa->ifa_addr); in TEST()
238 if (ifa->ifa_broadaddr) print_sockaddr_ll("hwbroad", ifa->ifa_addr); in TEST()
240 if (ifa->ifa_addr) print_sockaddr_inet("address", ifa->ifa_addr); in TEST()
241 if (ifa->ifa_broadaddr && (ifa->ifa_flags & (IFF_BROADCAST | IFF_POINTOPOINT)) != 0) { in TEST()
242 print_sockaddr_inet((ifa->ifa_flags & IFF_BROADCAST) ? "broadcast" : "destination", in TEST()
243 ifa->ifa_broadaddr); in TEST()
257 for (ifaddrs* ifa = addrs; ifa != nullptr; ifa = ifa->ifa_next) { in TEST() local
258 if (ifa->ifa_addr && ifa->ifa_addr->sa_family == AF_INET6) { in TEST()
259 sockaddr_in6* sa6 = reinterpret_cast<sockaddr_in6*>(ifa->ifa_addr); in TEST()