Lines Matching refs:address
282 uv_interface_address_t* address; in uv__interface_addresses_v6() local
347 address = *addresses; in uv__interface_addresses_v6()
369 address->name = uv__malloc(i + 1); in uv__interface_addresses_v6()
370 if (address->name == NULL) { in uv__interface_addresses_v6()
376 memcpy(address->name, p->__nif6e_name, i); in uv__interface_addresses_v6()
377 address->name[i] = '\0'; in uv__interface_addresses_v6()
378 __e2a_s(address->name); in uv__interface_addresses_v6()
381 address->address.address6 = *((struct sockaddr_in6*) &p->__nif6e_addr); in uv__interface_addresses_v6()
389 address->netmask.netmask6.sin6_len = p->__nif6e_prefixlen; in uv__interface_addresses_v6()
390 memcpy(&(address->netmask.netmask6.sin6_addr), netmask, 16); in uv__interface_addresses_v6()
391 address->netmask.netmask6.sin6_family = AF_INET6; in uv__interface_addresses_v6()
393 address->is_internal = p->__nif6e_flags & _NIF6E_FLAGS_LOOPBACK ? 1 : 0; in uv__interface_addresses_v6()
394 address++; in uv__interface_addresses_v6()
404 uv_interface_address_t* address; in uv_interface_addresses() local
501 address = *addresses; in uv_interface_addresses()
505 memcpy(address, addresses_v6, count_v6 * sizeof(uv_interface_address_t)); in uv_interface_addresses()
506 address += count_v6; in uv_interface_addresses()
542 address->name = uv__malloc(i + 1); in uv_interface_addresses()
543 if (address->name == NULL) { in uv_interface_addresses()
549 memcpy(address->name, p->ifr_name, i); in uv_interface_addresses()
550 address->name[i] = '\0'; in uv_interface_addresses()
551 __e2a_s(address->name); in uv_interface_addresses()
554 address->address.address4 = *((struct sockaddr_in*) &p->ifr_addr); in uv_interface_addresses()
563 address->netmask.netmask4 = *((struct sockaddr_in*) &p->ifr_addr); in uv_interface_addresses()
564 address->netmask.netmask4.sin_family = AF_INET; in uv_interface_addresses()
565 address->is_internal = flg.ifr_flags & IFF_LOOPBACK ? 1 : 0; in uv_interface_addresses()
566 address++; in uv_interface_addresses()