Home
last modified time | relevance | path

Searched refs:if_nameindex (Results 1 - 24 of 24) sorted by relevance

/third_party/musl/libc-test/src/api/
H A Dnet_if.c7 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 Dif.h12 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 Dif_nameindex.c84 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 Dif.h12 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 Dif_nameindex.c83 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 Dif_freenameindex.c4 void if_freenameindex(struct if_nameindex *idx) in if_freenameindex()
/third_party/musl/porting/liteos_m/kernel/include/net/
H A Dif.h12 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 Dif.h12 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 Dif.h12 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 Dnet_if_test.cpp49 * @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 Dif_nameindex.c21 * @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 Din6_02.c157 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 Dif_.rs339 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 Dmod.rs102 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 Dmod.rs148 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 Dmod.rs293 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 Dmod.rs380 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 Dmod.rs572 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 Dmod.rs163 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 Dip.c504 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 Dsocketmodule.c45 - 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 Dtest_socket.py1068 @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 Dwpa_supplicant.c6137 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 Dwpa_supplicant.c7458 struct if_nameindex *ifi, *ifp;
7462 ifp = if_nameindex();
7464 wpa_printf(MSG_ERROR, "if_nameindex: %s", strerror(errno));

Completed in 109 milliseconds