Lines Matching refs:ent
1928 static int uv__ifaddr_exclude(struct ifaddrs *ent, int exclude_type) { in uv__ifaddr_exclude() argument
1929 if (!((ent->ifa_flags & IFF_UP) && (ent->ifa_flags & IFF_RUNNING))) in uv__ifaddr_exclude()
1931 if (ent->ifa_addr == NULL) in uv__ifaddr_exclude()
1937 if (ent->ifa_addr->sa_family == PF_PACKET) in uv__ifaddr_exclude()
1943 struct ifaddrs *addrs, *ent; in uv_interface_addresses() local
1955 for (ent = addrs; ent != NULL; ent = ent->ifa_next) { in uv_interface_addresses()
1956 if (uv__ifaddr_exclude(ent, UV__EXCLUDE_IFADDR)) in uv_interface_addresses()
1976 for (ent = addrs; ent != NULL; ent = ent->ifa_next) { in uv_interface_addresses()
1977 if (uv__ifaddr_exclude(ent, UV__EXCLUDE_IFADDR)) in uv_interface_addresses()
1980 address->name = uv__strdup(ent->ifa_name); in uv_interface_addresses()
1982 if (ent->ifa_addr->sa_family == AF_INET6) { in uv_interface_addresses()
1983 address->address.address6 = *((struct sockaddr_in6*) ent->ifa_addr); in uv_interface_addresses()
1985 address->address.address4 = *((struct sockaddr_in*) ent->ifa_addr); in uv_interface_addresses()
1988 if (ent->ifa_netmask->sa_family == AF_INET6) { in uv_interface_addresses()
1989 address->netmask.netmask6 = *((struct sockaddr_in6*) ent->ifa_netmask); in uv_interface_addresses()
1991 address->netmask.netmask4 = *((struct sockaddr_in*) ent->ifa_netmask); in uv_interface_addresses()
1994 address->is_internal = !!(ent->ifa_flags & IFF_LOOPBACK); in uv_interface_addresses()
2000 for (ent = addrs; ent != NULL; ent = ent->ifa_next) { in uv_interface_addresses()
2001 if (uv__ifaddr_exclude(ent, UV__EXCLUDE_IFPHYS)) in uv_interface_addresses()
2007 size_t namelen = strlen(ent->ifa_name); in uv_interface_addresses()
2009 if (strncmp(address->name, ent->ifa_name, namelen) == 0 && in uv_interface_addresses()
2011 sll = (struct sockaddr_ll*)ent->ifa_addr; in uv_interface_addresses()