Home
last modified time | relevance | path

Searched refs:if_index (Results 1 – 25 of 29) 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/uboot/u-boot-2020.01/tools/
Dmkexynosspl.c83 const int if_index = argc - 2; /* Input file name index in argv. */ in main() local
104 ifd = open(argv[if_index], O_RDONLY); in main()
107 prog_name, argv[if_index], strerror(errno)); in main()
120 prog_name, argv[if_index], strerror(errno)); in main()
133 prog_name, argv[if_index], CHECKSUM_OFFSET); in main()
144 prog_name, count, argv[if_index]); in main()
150 prog_name, argv[if_index], strerror(errno)); in main()
/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-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-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-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/uboot/u-boot-2020.01/drivers/net/
Dsandbox-raw-bus.c28 for (i = ni; !(i->if_index == 0 && !i->if_name); i++) { in eth_raw_bus_post_bind()
46 priv->host_ifindex = i->if_index; in eth_raw_bus_post_bind()
/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/uboot/u-boot-2020.01/arch/sandbox/include/asm/
Deth-raw-os.h39 unsigned int if_index; /* Index of interface (1, 2, ...) */ member
/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,
Dif_urndis.c83 .if_index = 0,
96 .if_index = 0,
111 .if_index = 1,
/third_party/musl/porting/liteos_a/kernel/include/net/
Dif.h13 unsigned int if_index; member
/third_party/musl/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/glib/gio/
Dgsocket.c2228 NET_IFINDEX if_index; in g_socket_w32_get_adapter_ipv4_addr() local
2255 if_index = if_nametoindex (name_or_ip); in g_socket_w32_get_adapter_ipv4_addr()
2258 if (if_index == 0) in g_socket_w32_get_adapter_ipv4_addr()
2299 gboolean any_match = (if_index > 0) && (eth_adapter->IfIndex == if_index); in g_socket_w32_get_adapter_ipv4_addr()
2302 if (!any_match && if_index == 0 && eth_adapter->FriendlyName && in g_socket_w32_get_adapter_ipv4_addr()
2307 if (!any_match && if_index == 0 && eth_adapter->AdapterName && in g_socket_w32_get_adapter_ipv4_addr()
/third_party/libnl/doc/
Droute.txt961 if ((err = rtnl_link_ipip_set_link(link, if_index)) < 0)
1039 if ((err = rtnl_link_ipgre_set_link(link, if_index)) < 0)
1117 if ((err = rtnl_link_sit_set_link(link, if_index)) < 0)
1181 if ((err = rtnl_link_ipvti_set_link(link, if_index)) < 0)
1246 rtnl_link_ip6_tnl_set_link(link, if_index);
1290 if ((err = rtnl_link_xfrmi_set_link(link, if_index)) < 0)
/third_party/FreeBSD/sys/dev/usb/
Dusbdi.h234 uint8_t if_index; /* "ifaces" index to use */ member

12