Home
last modified time | relevance | path

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

12

/third_party/ltp/testcases/network/lib6/
Din6_02.c78 static int sub_if_indextoname_test(unsigned int if_index) in sub_if_indextoname_test() argument
83 TEST((ifname == if_indextoname(if_index, ifname))); in sub_if_indextoname_test()
88 if_index, TST_RET, TST_ERR); in sub_if_indextoname_test()
91 tst_res(TINFO, "if_indextoname(%d) returns NULL", if_index); in sub_if_indextoname_test()
96 if (idx != if_index) { in sub_if_indextoname_test()
99 if_index, ifname, ifname, idx); in sub_if_indextoname_test()
102 tst_res(TINFO, "if_indextoname(%d) returns '%s'", if_index, ifname); in sub_if_indextoname_test()
168 for (i = 0; pini[i].if_index; ++i) { in if_nameindex_test()
169 p = if_indextoname(pini[i].if_index, buf); in if_nameindex_test()
173 pini[i].if_index, pini[i].if_name, in if_nameindex_test()
[all …]
/third_party/libnl/tests/
Dtest-create-xfrmi.c9 int err, if_index; in main() local
23 if_index = rtnl_link_name2i(link_cache, "eth0"); in main()
24 if (!if_index) { in main()
37 rtnl_link_xfrmi_set_link(link, if_index); in main()
Dtest-create-ip6tnl.c10 int err, if_index; in main() local
24 if_index = rtnl_link_name2i(link_cache, "ens33"); in main()
25 if (!if_index) { in main()
37 rtnl_link_ip6_tnl_set_link(link, if_index); in main()
Dtest-create-sit.c10 int err, if_index; in main() local
24 if_index = rtnl_link_name2i(link_cache, "eno16777736"); in main()
25 if (!if_index) { in main()
37 rtnl_link_sit_set_link(link, if_index); in main()
Dtest-create-ipgre.c10 int err, if_index; in main() local
24 if_index = rtnl_link_name2i(link_cache, "eno16777736"); in main()
25 if (!if_index) { in main()
37 rtnl_link_ipgre_set_link(link, if_index); in main()
Dtest-create-ipip.c10 int err, if_index; in main() local
24 if_index = rtnl_link_name2i(link_cache, "eno16777736"); in main()
25 if (!if_index) { in main()
37 rtnl_link_ipip_set_link(link, if_index); in main()
Dtest-create-ipvti.c10 int err, if_index; in main() local
24 if_index = rtnl_link_name2i(link_cache, "ens33"); in main()
25 if (!if_index) { in main()
37 rtnl_link_ipvti_set_link(link, if_index); in main()
Dtest-create-ipgretap.c10 int err, if_index; in main() local
24 if_index = rtnl_link_name2i(link_cache, "enp0s5"); in main()
25 if (!if_index) { in main()
37 rtnl_link_ipgre_set_link(link, if_index); in main()
/third_party/gstreamer/gstplugins_bad/ext/sctp/usrsctp/usrsctplib/netinet/
Dsctp_userspace.c99 sctp_userspace_get_mtu_from_ifn(uint32_t if_index, int af) in sctp_userspace_get_mtu_from_ifn() argument
105 if (if_indextoname(if_index, ifr.ifr_name) != NULL) { in sctp_userspace_get_mtu_from_ifn()
123 sctp_userspace_get_mtu_from_ifn(uint32_t if_index, int af) in sctp_userspace_get_mtu_from_ifn() argument
144 sctp_userspace_get_mtu_from_ifn(uint32_t if_index, int af) in sctp_userspace_get_mtu_from_ifn() argument
171 if (pAdapt->IfIndex == if_index) { in sctp_userspace_get_mtu_from_ifn()
Dsctp_bsd_addr.c625 ifn->if_index,
718 ifa->ifa_ifp->if_index, ifa->ifa_ifp->if_type, ifa->ifa_ifp->if_xname,
728 ifa->ifa_ifp->if_index,
/third_party/musl/libc-test/src/functionalext/supplement/network/
Dif_indextoname.c31 unsigned int if_index = (unsigned int)atoi("1"); in if_indextoname_0100() local
33 char *name = if_indextoname(if_index, if_name); in if_indextoname_0100()
Dif_nametoindex.c31 unsigned int if_index = (unsigned int)atoi("1"); in if_nametoindex_0100() local
33 char *name = if_indextoname(if_index, if_name); in if_nametoindex_0100()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/
Dvlan_full.c138 int if_index; in br_delif() local
150 if_index = if_nametoindex(if_name); in br_delif()
152 if (if_index == 0) { in br_delif()
161 args[1] = if_index; in br_delif()
193 int if_index; in br_addif() local
210 if_index = if_nametoindex(if_name); in br_addif()
212 if (if_index == 0) { in br_addif()
221 args[1] = if_index; in br_addif()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/
Dvlan_full.c138 int if_index; in br_delif() local
150 if_index = if_nametoindex(if_name); in br_delif()
152 if (if_index == 0) { in br_delif()
161 args[1] = if_index; in br_delif()
193 int if_index; in br_addif() local
210 if_index = if_nametoindex(if_name); in br_addif()
212 if (if_index == 0) { in br_addif()
221 args[1] = if_index; in br_addif()
/third_party/musl/porting/liteos_a/user/src/network/
Dif_nameindex.c102 d->if_index = s->index; in if_nameindex()
108 d->if_index = 0; in if_nameindex()
/third_party/musl/src/network/
Dif_nameindex.c101 d->if_index = s->index; in if_nameindex()
107 d->if_index = 0; in if_nameindex()
/third_party/musl/libc-test/src/api/
Dnet_if.c8 F(unsigned, if_index) in f()
/third_party/toybox/toys/pending/
Darping.c205 int if_index, recv_len; in arping_main() local
212 get_interface(TT.iface, &if_index, NULL, NULL); in arping_main()
213 src_pk.sll_ifindex = if_index; in arping_main()
/third_party/FreeBSD/sys/dev/usb/net/
Dif_cdce.c104 .if_index = 0,
117 .if_index = 0,
130 .if_index = 1,
142 .if_index = 1,
158 .if_index = 0,
171 .if_index = 0,
184 .if_index = 1,
196 .if_index = 1,
/third_party/musl/ndk_musl_include/net/
Dif.h13 unsigned int if_index; member
/third_party/musl/porting/liteos_a/kernel/include/net/
Dif.h13 unsigned int if_index; member
/third_party/musl/porting/uniproton/kernel/include/net/
Dif.h13 unsigned int if_index; member
/third_party/musl/porting/liteos_m/kernel/include/net/
Dif.h13 unsigned int if_index; member
/third_party/musl/porting/liteos_m_iccarm/kernel/include/net/
Dif.h13 unsigned int if_index; member
/third_party/musl/include/net/
Dif.h13 unsigned int if_index; member

12