Lines Matching refs:address
771 static int uv__set_phys_addr(uv_interface_address_t* address, in uv__set_phys_addr() argument
781 memcpy(address->phys_addr, LLADDR(sa_addr), sizeof(address->phys_addr)); in uv__set_phys_addr()
782 for (i = 0; i < sizeof(address->phys_addr); i++) { in uv__set_phys_addr()
784 if (address->phys_addr[i] != 0) in uv__set_phys_addr()
788 if (address->address.address4.sin_family == AF_INET) { in uv__set_phys_addr()
790 sin->sin_addr.s_addr = address->address.address4.sin_addr.s_addr; in uv__set_phys_addr()
791 } else if (address->address.address4.sin_family == AF_INET6) { in uv__set_phys_addr()
794 address->address.address6.sin6_addr.s6_addr, in uv__set_phys_addr()
795 sizeof(address->address.address6.sin6_addr.s6_addr)); in uv__set_phys_addr()
808 memcpy(address->phys_addr, arpreq.arp_ha.sa_data, sizeof(address->phys_addr)); in uv__set_phys_addr()
826 uv_interface_address_t* address; in uv_interface_addresses() local
854 address = *addresses; in uv_interface_addresses()
860 address->name = uv__strdup(ent->ifa_name); in uv_interface_addresses()
863 address->address.address6 = *((struct sockaddr_in6*) ent->ifa_addr); in uv_interface_addresses()
865 address->address.address4 = *((struct sockaddr_in*) ent->ifa_addr); in uv_interface_addresses()
869 address->netmask.netmask6 = *((struct sockaddr_in6*) ent->ifa_netmask); in uv_interface_addresses()
871 address->netmask.netmask4 = *((struct sockaddr_in*) ent->ifa_netmask); in uv_interface_addresses()
874 address->is_internal = !!((ent->ifa_flags & IFF_PRIVATE) || in uv_interface_addresses()
877 uv__set_phys_addr(address, ent); in uv_interface_addresses()
878 address++; in uv_interface_addresses()