/third_party/ltp/testcases/network/lib6/ |
D | in6_02.c | 78 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/ |
D | mkexynosspl.c | 83 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/ |
D | test-create-xfrmi.c | 9 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()
|
D | test-create-ip6tnl.c | 10 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()
|
D | test-create-ipgre.c | 10 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()
|
D | test-create-sit.c | 10 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()
|
D | test-create-ipip.c | 10 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()
|
D | test-create-ipvti.c | 10 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()
|
D | test-create-ipgretap.c | 10 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/ |
D | sandbox-raw-bus.c | 28 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/ |
D | vlan_full.c | 138 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/ |
D | vlan_full.c | 138 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/ |
D | if_nameindex.c | 102 d->if_index = s->index; in if_nameindex() 108 d->if_index = 0; in if_nameindex()
|
/third_party/musl/src/network/ |
D | if_nameindex.c | 101 d->if_index = s->index; in if_nameindex() 107 d->if_index = 0; in if_nameindex()
|
/third_party/musl/libc-test/src/api/ |
D | net_if.c | 8 F(unsigned, if_index) in f()
|
/third_party/uboot/u-boot-2020.01/arch/sandbox/include/asm/ |
D | eth-raw-os.h | 39 unsigned int if_index; /* Index of interface (1, 2, ...) */ member
|
/third_party/toybox/toys/pending/ |
D | arping.c | 205 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/ |
D | if_cdce.c | 104 .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,
|
D | if_urndis.c | 83 .if_index = 0, 96 .if_index = 0, 111 .if_index = 1,
|
/third_party/musl/porting/liteos_a/kernel/include/net/ |
D | if.h | 13 unsigned int if_index; member
|
/third_party/musl/include/net/ |
D | if.h | 13 unsigned int if_index; member
|
/third_party/musl/porting/liteos_m/kernel/include/net/ |
D | if.h | 13 unsigned int if_index; member
|
/third_party/glib/gio/ |
D | gsocket.c | 2228 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/ |
D | route.txt | 961 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/ |
D | usbdi.h | 234 uint8_t if_index; /* "ifaces" index to use */ member
|