Searched refs:if_name (Results 1 – 5 of 5) sorted by relevance
/bionic/tests/ |
D | net_if_test.cpp | 49 fprintf(stderr, "\t%d\t%s\n", it->if_index, it->if_name); in TEST() 50 if_nameindex_names.insert(it->if_name); in TEST() 51 EXPECT_EQ(it->if_index, if_nametoindex(it->if_name)); in TEST() 52 EXPECT_STREQ(it->if_name, if_indextoname(it->if_index, buf)); in TEST() 53 if (strcmp(it->if_name, "lo") == 0) saw_lo = true; in TEST()
|
D | ifaddrs_test.cpp | 110 static void CheckAddressIsInSet(const std::string& if_name, bool unicast, in CheckAddressIsInSet() argument 115 if_name.copy(ifr.ifr_name, IFNAMSIZ - 1); in CheckAddressIsInSet() 123 ASSERT_EQ(0, ioctl(fd, SIOCGIFFLAGS, &ifr)) << if_name << ' ' << strerror(errno); in CheckAddressIsInSet() 127 ASSERT_EQ(0, ioctl(fd, request, &ifr)) << if_name << ' ' << strerror(errno); in CheckAddressIsInSet() 133 EXPECT_TRUE(addrs.find(addr) != addrs.end()) << if_name << ' ' << std::hex << ntohl(addr); in CheckAddressIsInSet()
|
/bionic/libc/bionic/ |
D | net_if.cpp | 90 if (names_too) free(it->data.if_name); in Free() 110 new_link->data.if_name = strndup(reinterpret_cast<char*>(RTA_DATA(rta)), RTA_PAYLOAD(rta)); in __if_nameindex_callback() 140 out->if_name = it->data.if_name; in if_nameindex() 144 out->if_name = nullptr; in if_nameindex() 157 while (ptr->if_index != 0 || ptr->if_name != nullptr) { in if_freenameindex() 158 free(ptr->if_name); in if_freenameindex()
|
/bionic/libc/include/net/ |
D | if.h | 44 char* if_name; member
|
/bionic/libc/kernel/uapi/linux/ |
D | gsmmux.h | 50 char if_name[IFNAMSIZ]; member
|