Home
last modified time | relevance | path

Searched refs:IFLA_IFNAME (Results 1 – 19 of 19) sorted by relevance

/linux-6.12.1/drivers/net/can/
Dvxcan.c202 if (ifmp && tbp[IFLA_IFNAME]) { in vxcan_newlink()
203 nla_strscpy(ifname, tbp[IFLA_IFNAME], IFNAMSIZ); in vxcan_newlink()
239 if (tb[IFLA_IFNAME]) in vxcan_newlink()
240 nla_strscpy(dev->name, tb[IFLA_IFNAME], IFNAMSIZ); in vxcan_newlink()
/linux-6.12.1/tools/testing/selftests/net/tcp_ao/lib/
Dnetlink.c123 if (rtattr_pack(nh, req_sz, IFLA_IFNAME, peer, strlen(peer))) in veth_pack_peerb()
154 if (rtattr_pack(&req.nh, sizeof(req), IFLA_IFNAME, name, strlen(name))) in __add_veth()
369 if (rtattr_pack(&req.nh, sizeof(req), IFLA_IFNAME, name, strlen(name))) in __add_vrf()
/linux-6.12.1/tools/bpf/bpftool/
Dnetlink_dumper.c78 libbpf_nla_getattr_str(tb[IFLA_IFNAME])); in do_xdp_dump()
Dnet.c386 tb[IFLA_IFNAME] in dump_link_nlmsg()
387 ? libbpf_nla_getattr_str(tb[IFLA_IFNAME]) in dump_link_nlmsg()
/linux-6.12.1/drivers/net/
Dnetkit.c381 if (ifmp && tbp[IFLA_IFNAME]) { in netkit_new_link()
382 nla_strscpy(ifname, tbp[IFLA_IFNAME], IFNAMSIZ); in netkit_new_link()
430 if (tb[IFLA_IFNAME]) in netkit_new_link()
431 nla_strscpy(dev->name, tb[IFLA_IFNAME], IFNAMSIZ); in netkit_new_link()
Dveth.c1803 if (ifmp && tbp[IFLA_IFNAME]) { in veth_newlink()
1804 nla_strscpy(ifname, tbp[IFLA_IFNAME], IFNAMSIZ); in veth_newlink()
1856 if (tb[IFLA_IFNAME]) in veth_newlink()
1857 nla_strscpy(dev->name, tb[IFLA_IFNAME], IFNAMSIZ); in veth_newlink()
/linux-6.12.1/tools/testing/selftests/net/
Dtap.c112 rtattr_add_str(&req.nh, IFLA_IFNAME, dev); in dev_create()
165 rtattr_add_str(&req.nh, IFLA_IFNAME, dev); in dev_delete()
Dtun.c91 rta->rta_type = IFLA_IFNAME; in tun_delete()
Dipsec.c273 if (rtattr_pack(nh, req_sz, IFLA_IFNAME, peer, strlen(peer))) in veth_pack_peerb()
327 if (rtattr_pack(&req.nh, sizeof(req), IFLA_IFNAME, peera, strlen(peera))) in veth_add()
/linux-6.12.1/net/core/
Drtnetlink.c1869 if (nla_put_string(skb, IFLA_IFNAME, devname)) in rtnl_fill_ifinfo()
2007 [IFLA_IFNAME] = { .type = NLA_STRING, .len = IFNAMSIZ-1 },
2812 if (tb[IFLA_IFNAME]) in do_setlink()
2813 nla_strscpy(ifname, tb[IFLA_IFNAME], IFNAMSIZ); in do_setlink()
3184 if (tb[IFLA_IFNAME]) in rtnl_dev_get()
3185 nla_strscpy(ifname, tb[IFLA_IFNAME], IFNAMSIZ); in rtnl_dev_get()
3216 else if (tb[IFLA_IFNAME] || tb[IFLA_ALT_IFNAME]) in rtnl_setlink()
3319 else if (tb[IFLA_IFNAME] || tb[IFLA_ALT_IFNAME]) in rtnl_dellink()
3327 if (tb[IFLA_IFNAME] || tb[IFLA_ALT_IFNAME] || ifm->ifi_index > 0) in rtnl_dellink()
3502 if (tb[IFLA_IFNAME]) { in rtnl_newlink_create()
[all …]
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dxfrm_info.c221 rtattr_add_str(nh, IFLA_IFNAME, "ipsec0"); in setup_xfrmi_external_dev()
Dtc_redirect.c184 addattr_l(&req.n, sizeof(req), IFLA_IFNAME, prim, strlen(prim)); in create_netkit()
191 addattr_l(&req.n, sizeof(req), IFLA_IFNAME, peer, strlen(peer)); in create_netkit()
Dtc_netkit.c54 addattr_l(&req.n, sizeof(req), IFLA_IFNAME, netkit_name, in create_netkit()
/linux-6.12.1/tools/include/uapi/linux/
Dif_link.h300 IFLA_IFNAME, enumerator
/linux-6.12.1/include/uapi/linux/
Dif_link.h300 IFLA_IFNAME, enumerator
/linux-6.12.1/drivers/net/ppp/
Dppp_generic.c1343 if (!tb[IFLA_IFNAME] || !nla_len(tb[IFLA_IFNAME]) || !*(char *)nla_data(tb[IFLA_IFNAME])) in ppp_nl_newlink()
/linux-6.12.1/net/wireless/
Dwext-core.c437 if (nla_put_string(skb, IFLA_IFNAME, dev->name)) in rtnetlink_ifinfo_prep()
/linux-6.12.1/net/bridge/
Dbr_netlink.c485 if (nla_put_string(skb, IFLA_IFNAME, dev->name) || in br_fill_ifinfo()
/linux-6.12.1/net/ipv6/
Daddrconf.c6069 if (nla_put_string(skb, IFLA_IFNAME, dev->name) || in inet6_fill_ifinfo()