Lines Matching refs:interfaces
41 uv_interface_address_t* interfaces; in TEST_IMPL() local
118 err = uv_interface_addresses(&interfaces, &count); in TEST_IMPL()
123 printf(" name: %s\n", interfaces[i].name); in TEST_IMPL()
124 printf(" internal: %d\n", interfaces[i].is_internal); in TEST_IMPL()
127 (unsigned char)interfaces[i].phys_addr[0], in TEST_IMPL()
128 (unsigned char)interfaces[i].phys_addr[1], in TEST_IMPL()
129 (unsigned char)interfaces[i].phys_addr[2], in TEST_IMPL()
130 (unsigned char)interfaces[i].phys_addr[3], in TEST_IMPL()
131 (unsigned char)interfaces[i].phys_addr[4], in TEST_IMPL()
132 (unsigned char)interfaces[i].phys_addr[5]); in TEST_IMPL()
134 if (interfaces[i].address.address4.sin_family == AF_INET) { in TEST_IMPL()
135 uv_ip4_name(&interfaces[i].address.address4, buffer, sizeof(buffer)); in TEST_IMPL()
136 } else if (interfaces[i].address.address4.sin_family == AF_INET6) { in TEST_IMPL()
137 uv_ip6_name(&interfaces[i].address.address6, buffer, sizeof(buffer)); in TEST_IMPL()
142 if (interfaces[i].netmask.netmask4.sin_family == AF_INET) { in TEST_IMPL()
143 uv_ip4_name(&interfaces[i].netmask.netmask4, buffer, sizeof(buffer)); in TEST_IMPL()
145 } else if (interfaces[i].netmask.netmask4.sin_family == AF_INET6) { in TEST_IMPL()
146 uv_ip6_name(&interfaces[i].netmask.netmask6, buffer, sizeof(buffer)); in TEST_IMPL()
152 uv_free_interface_addresses(interfaces, count); in TEST_IMPL()