Lines Matching refs:ifa
229 for (ifaddrs* ifa = addrs; ifa != nullptr; ifa = ifa->ifa_next) { in TEST() local
230 int family = ifa->ifa_addr ? ifa->ifa_addr->sa_family : in TEST()
231 ifa->ifa_broadaddr ? ifa->ifa_broadaddr->sa_family : AF_UNSPEC; in TEST()
235 ifa->ifa_name, FamilyToName(family), family, in TEST()
236 ifa->ifa_flags, FlagsToString(ifa->ifa_flags).c_str()); 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()
243 if (ifa->ifa_broadaddr && (ifa->ifa_flags & (IFF_BROADCAST | IFF_POINTOPOINT)) != 0) { in TEST()
244 print_sockaddr_inet((ifa->ifa_flags & IFF_BROADCAST) ? "broadcast" : "destination", in TEST()
245 ifa->ifa_broadaddr); in TEST()
259 for (ifaddrs* ifa = addrs; ifa != nullptr; ifa = ifa->ifa_next) { in TEST() local
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()