Home
last modified time | relevance | path

Searched refs:if_index (Results 1 – 3 of 3) sorted by relevance

/bionic/tests/
Dnet_if_test.cpp43 ASSERT_TRUE(list->if_index != 0); in TEST()
48 for (struct if_nameindex* it = list; it->if_index != 0; ++it) { in TEST()
49 fprintf(stderr, "\t%d\t%s\n", it->if_index, 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()
/bionic/libc/bionic/
Dnet_if.cpp103 new_link->data.if_index = ifi->ifi_index; in __if_nameindex_callback()
139 out->if_index = it->data.if_index; in if_nameindex()
143 out->if_index = 0; in if_nameindex()
157 while (ptr->if_index != 0 || ptr->if_name != nullptr) { in if_freenameindex()
/bionic/libc/include/net/
Dif.h43 unsigned if_index; member