Searched refs:if_name (Results 1 – 6 of 6) sorted by relevance
/bionic/libc/bionic/ |
D | net_if.cpp | 80 if (names_too) free(it->data.if_name); in Free() 100 new_link->data.if_name = strndup(reinterpret_cast<char*>(RTA_DATA(rta)), RTA_PAYLOAD(rta)); in __if_nameindex_callback() 130 out->if_name = it->data.if_name; in if_nameindex() 134 out->if_name = nullptr; in if_nameindex() 147 while (ptr->if_index != 0 || ptr->if_name != nullptr) { in if_freenameindex() 148 free(ptr->if_name); in if_freenameindex()
|
/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 | 112 static void CheckAddressIsInSet(const std::string& if_name, bool unicast, in CheckAddressIsInSet() argument 117 if_name.copy(ifr.ifr_name, IFNAMSIZ - 1); in CheckAddressIsInSet() 125 ASSERT_EQ(0, ioctl(fd, SIOCGIFFLAGS, &ifr)) << if_name << ' ' << strerror(errno); in CheckAddressIsInSet() 129 ASSERT_EQ(0, ioctl(fd, request, &ifr)) << if_name << ' ' << strerror(errno); in CheckAddressIsInSet() 135 EXPECT_TRUE(addrs.find(addr) != addrs.end()) << if_name << ' ' << std::hex << ntohl(addr); in CheckAddressIsInSet()
|
/bionic/libc/include/net/ |
D | if.h | 44 char* if_name; member
|
/bionic/tests/headers/posix/ |
D | net_if_h.c | 36 STRUCT_MEMBER(struct if_nameindex, char*, if_name); in net_if_h()
|
/bionic/libc/kernel/uapi/linux/ |
D | gsmmux.h | 44 char if_name[IFNAMSIZ]; member
|