/third_party/musl/libc-test/src/api/ |
H A D | net_if.c | 7 struct if_nameindex x; in f() 12 {void(*p)(struct if_nameindex*) = if_freenameindex;} in f() 14 {struct if_nameindex*(*p)(void) = if_nameindex;} in f()
|
/third_party/musl/porting/liteos_a/kernel/include/net/ |
H A D | if.h | 12 struct if_nameindex { struct 19 struct if_nameindex *if_nameindex (void); 20 void if_freenameindex (struct if_nameindex *);
|
/third_party/musl/porting/liteos_a/user/src/network/ |
H A D | if_nameindex.c | 84 struct if_nameindex *if_nameindex() in if_nameindex() function 87 struct if_nameindex *ifs = 0, *d; in if_nameindex() 97 ifs = malloc(sizeof(struct if_nameindex[ctx->num+1]) + ctx->str_bytes); in if_nameindex()
|
/third_party/musl/porting/uniproton/kernel/include/net/ |
H A D | if.h | 12 struct if_nameindex { struct 19 struct if_nameindex *if_nameindex (void); 20 void if_freenameindex (struct if_nameindex *);
|
/third_party/musl/src/network/ |
H A D | if_nameindex.c | 83 struct if_nameindex *if_nameindex() in if_nameindex() function 86 struct if_nameindex *ifs = 0, *d; in if_nameindex() 96 ifs = malloc(sizeof(struct if_nameindex[ctx->num+1]) + ctx->str_bytes); in if_nameindex()
|
H A D | if_freenameindex.c | 4 void if_freenameindex(struct if_nameindex *idx) in if_freenameindex()
|
/third_party/musl/porting/liteos_m/kernel/include/net/ |
H A D | if.h | 12 struct if_nameindex { struct 19 struct if_nameindex *if_nameindex (void); 20 void if_freenameindex (struct if_nameindex *);
|
/third_party/musl/porting/liteos_m_iccarm/kernel/include/net/ |
H A D | if.h | 12 struct if_nameindex { struct 19 struct if_nameindex *if_nameindex (void); 20 void if_freenameindex (struct if_nameindex *);
|
/third_party/musl/include/net/ |
H A D | if.h | 12 struct if_nameindex { struct 19 struct if_nameindex *if_nameindex (void); 20 void if_freenameindex (struct if_nameindex *);
|
/third_party/musl/libc-test/src/functionalext/supplement/network/network_gtest/ |
H A D | net_if_test.cpp | 49 * @tc.desc: Ensure that the if_nameindex function successfully retrieves a list of network interface names and indices 54 auto list = std::unique_ptr<struct if_nameindex, decltype(&if_freenameindex)>(if_nameindex(), &if_freenameindex); in HWTEST_F() 60 for (struct if_nameindex* it = list.get(); it->if_index != 0; ++it) { in HWTEST_F()
|
/third_party/musl/libc-test/src/functionalext/supplement/network/ |
H A D | if_nameindex.c | 21 * @tc.desc : Verify if_nameindex process success 26 struct if_nameindex *ifni = if_nameindex(); in if_nameindex_0100()
|
/third_party/ltp/testcases/network/lib6/ |
H A D | in6_02.c | 157 struct if_nameindex *pini; in if_nameindex_test() 164 tst_res(TINFO, "IPv6 if_nameindex() test"); in if_nameindex_test() 166 pini = if_nameindex(); in if_nameindex_test() 168 tst_res(TFAIL, "if_nameindex() returns NULL, errno %d (%s)", in if_nameindex_test() 176 "if_nameindex() idx %d name '%s' but if_indextoname(%d) is '%s'", in if_nameindex_test() 184 "if_nameindex() idx %d name '%s' but if_indextoname(%s) is %d", in if_nameindex_test() 189 tst_res(TINFO, "if_nameindex() idx %d name '%s'", in if_nameindex_test() 210 pini = if_nameindex(); in if_nameindex_test() 213 "if_freenameindex test failed if_nameindex() iteration %d", i); in if_nameindex_test() 231 tst_res(TPASS, "if_nameindex() tes in if_nameindex_test() [all...] |
/third_party/rust/crates/nix/src/net/ |
H A D | if_.rs | 339 mod if_nameindex { modules 351 pub struct Interface(libc::if_nameindex); 374 /// A list of the network interfaces available on this system. Obtained from [`if_nameindex()`]. 376 ptr: NonNull<libc::if_nameindex>, 423 ptr: *const libc::if_nameindex, 446 /// let interfaces = nix::net::if_::if_nameindex().unwrap(); 451 pub fn if_nameindex() -> Result<Interfaces> { in if_nameindex() functions 453 let ifs = libc::if_nameindex(); in if_nameindex() 469 pub use if_nameindex::*;
|
/third_party/rust/crates/libc/src/unix/bsd/ |
H A D | mod.rs | 102 pub struct if_nameindex { structure names 645 pub fn if_nameindex() -> *mut if_nameindex; in if_nameindex() functions 646 pub fn if_freenameindex(ptr: *mut if_nameindex); in if_freenameindex()
|
/third_party/rust/crates/libc/src/unix/linux_like/emscripten/ |
H A D | mod.rs | 148 pub struct if_nameindex { structure names 1819 pub fn if_nameindex() -> *mut if_nameindex; in if_nameindex() functions 1820 pub fn if_freenameindex(ptr: *mut if_nameindex); in if_freenameindex()
|
/third_party/rust/crates/libc/src/unix/nto/ |
H A D | mod.rs | 293 pub struct if_nameindex { structure names 2781 pub fn if_nameindex() -> *mut if_nameindex; in if_nameindex() functions 2782 pub fn if_freenameindex(ptr: *mut if_nameindex); in if_freenameindex()
|
/third_party/rust/crates/libc/src/unix/solarish/ |
H A D | mod.rs | 380 pub struct if_nameindex { structure names 2778 pub fn if_nameindex() -> *mut if_nameindex; in if_nameindex() functions 2779 pub fn if_freenameindex(ptr: *mut if_nameindex); in if_freenameindex()
|
/third_party/rust/crates/libc/src/fuchsia/ |
H A D | mod.rs | 572 pub struct if_nameindex { structure names 4028 pub fn if_nameindex() -> *mut if_nameindex; in if_nameindex() functions 4029 pub fn if_freenameindex(ptr: *mut if_nameindex); in if_freenameindex()
|
/third_party/rust/crates/libc/src/unix/linux_like/linux/ |
H A D | mod.rs | 163 pub struct if_nameindex { structure names 4057 pub fn if_nameindex() -> *mut if_nameindex; in if_nameindex() functions 4058 pub fn if_freenameindex(ptr: *mut if_nameindex); in if_freenameindex()
|
/third_party/toybox/toys/pending/ |
H A D | ip.c | 504 struct if_nameindex *if_ni, *i; in get_ifaceindex() 507 if_ni = if_nameindex(); in get_ifaceindex() 508 if (!if_ni) perror_exit("if_nameindex"); in get_ifaceindex()
|
/third_party/python/Modules/ |
H A D | socketmodule.c | 45 - socket.if_nameindex() -> list of tuples (if_index, if_name) 6849 struct if_nameindex *ni; 6851 ni = if_nameindex(); 6893 "if_nameindex()\n\ 7096 {"if_nameindex", socket_if_nameindex,
|
/third_party/python/Lib/test/ |
H A D | test_socket.py | 1068 @unittest.skipUnless(hasattr(socket, 'if_nameindex'), 1069 'socket.if_nameindex() not available.') 1071 interfaces = socket.if_nameindex() 1770 @unittest.skipUnless(hasattr(socket, 'if_nameindex'), "test needs socket.if_nameindex()") 1773 (ifindex, test_interface) = socket.if_nameindex()[0] 1803 @unittest.skipUnless(hasattr(socket, 'if_nameindex'), "test needs socket.if_nameindex()") 1806 (ifindex, test_interface) = socket.if_nameindex()[0]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/ |
H A D | wpa_supplicant.c | 6137 struct if_nameindex *ifi, *ifp; 6141 ifp = if_nameindex(); 6143 wpa_printf(MSG_ERROR, "if_nameindex: %s", strerror(errno));
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/ |
H A D | wpa_supplicant.c | 7458 struct if_nameindex *ifi, *ifp; 7462 ifp = if_nameindex(); 7464 wpa_printf(MSG_ERROR, "if_nameindex: %s", strerror(errno));
|