Lines Matching refs:family
84 int family = addr->ifa_addr ? addr->ifa_addr->sa_family : in TEST() local
88 if (family == AF_PACKET || family == AF_UNSPEC) { in TEST()
175 int family = addr->sa_family; in print_sockaddr_inet() local
177 (family == AF_INET) ? sizeof(sockaddr_in) : sizeof(sockaddr_in6), in print_sockaddr_inet()
180 printf("%d getnameinfo() failed: %s\n", family, gai_strerror(error)); in print_sockaddr_inet()
186 static const char* FamilyToName(int family) { in FamilyToName() argument
187 if (family == AF_INET) return "AF_INET"; in FamilyToName()
188 if (family == AF_INET6) return "AF_INET6"; in FamilyToName()
189 if (family == AF_PACKET) return "AF_PACKET"; in FamilyToName()
190 if (family == AF_UNSPEC) return "AF_UNSPEC"; in FamilyToName()
230 int family = ifa->ifa_addr ? ifa->ifa_addr->sa_family : in TEST() local
235 ifa->ifa_name, FamilyToName(family), family, in TEST()
238 if (family == AF_PACKET) { in TEST()
241 } else if (family == AF_INET || family == AF_INET6) { in TEST()