Lines Matching refs:interfaces
36 uv_interface_address_t* interfaces; in TEST_IMPL() local
154 err = uv_interface_addresses(&interfaces, &count); in TEST_IMPL()
159 printf(" name: %s\n", interfaces[i].name); in TEST_IMPL()
160 printf(" internal: %d\n", interfaces[i].is_internal); in TEST_IMPL()
163 (unsigned char)interfaces[i].phys_addr[0], in TEST_IMPL()
164 (unsigned char)interfaces[i].phys_addr[1], in TEST_IMPL()
165 (unsigned char)interfaces[i].phys_addr[2], in TEST_IMPL()
166 (unsigned char)interfaces[i].phys_addr[3], in TEST_IMPL()
167 (unsigned char)interfaces[i].phys_addr[4], in TEST_IMPL()
168 (unsigned char)interfaces[i].phys_addr[5]); in TEST_IMPL()
170 if (interfaces[i].address.address4.sin_family == AF_INET) { in TEST_IMPL()
171 uv_ip4_name(&interfaces[i].address.address4, buffer, sizeof(buffer)); in TEST_IMPL()
172 } else if (interfaces[i].address.address4.sin_family == AF_INET6) { in TEST_IMPL()
173 uv_ip6_name(&interfaces[i].address.address6, buffer, sizeof(buffer)); in TEST_IMPL()
178 if (interfaces[i].netmask.netmask4.sin_family == AF_INET) { in TEST_IMPL()
179 uv_ip4_name(&interfaces[i].netmask.netmask4, buffer, sizeof(buffer)); in TEST_IMPL()
181 } else if (interfaces[i].netmask.netmask4.sin_family == AF_INET6) { in TEST_IMPL()
182 uv_ip6_name(&interfaces[i].netmask.netmask6, buffer, sizeof(buffer)); in TEST_IMPL()
188 uv_free_interface_addresses(interfaces, count); in TEST_IMPL()