Home
last modified time | relevance | path

Searched refs:ifr_name (Results 1 – 25 of 30) sorted by relevance

12

/linux-6.6.21/net/core/
Ddev_ioctl.c29 ifr->ifr_name[IFNAMSIZ-1] = 0; in dev_ifname()
30 return netdev_get_name(net, ifr->ifr_name, ifr->ifr_ifindex); in dev_ifname()
141 struct net_device *dev = dev_get_by_name_rcu(net, ifr->ifr_name); in dev_ifsioc_locked()
421 strscpy_pad(ifrr.ifr_name, dev->name, IFNAMSIZ); in generic_hwtstamp_ioctl_lower()
518 struct net_device *dev = __dev_get_by_name(net, ifr->ifr_name); in dev_ifsioc()
682 ifr->ifr_name[IFNAMSIZ-1] = 0; in dev_ioctl()
684 colon = strchr(ifr->ifr_name, ':'); in dev_ioctl()
694 dev_load(net, ifr->ifr_name); in dev_ioctl()
695 ret = dev_get_mac_address(&ifr->ifr_hwaddr, net, ifr->ifr_name); in dev_ioctl()
712 dev_load(net, ifr->ifr_name); in dev_ioctl()
[all …]
/linux-6.6.21/tools/testing/selftests/net/
Dtun.c25 strcpy(ifr.ifr_name, dev); in tun_attach()
36 strcpy(ifr.ifr_name, dev); in tun_detach()
54 strcpy(ifr.ifr_name, dev); in tun_alloc()
63 strcpy(dev, ifr.ifr_name); in tun_alloc()
Dhwtstamp_config.c116 strcpy(ifr.ifr_name, argv[1]); in main()
Dtimestamping.c388 memcpy(device.ifr_name, interface, if_len + 1); in main()
393 memcpy(hwtstamp.ifr_name, interface, if_len + 1); in main()
Dudpgso.c283 strcpy(ifr.ifr_name, ifname); in get_device_mtu()
298 strcpy(ifr.ifr_name, ifname); in __set_device_mtu()
Dtap.c214 strcpy(ifr.ifr_name, devname); in opentap()
/linux-6.6.21/arch/um/os-Linux/drivers/
Dtuntap_user.c149 strscpy(ifr.ifr_name, pri->dev_name, sizeof(ifr.ifr_name)); in tuntap_open()
/linux-6.6.21/net/wireless/
Dwext-core.c955 if ((dev = __dev_get_by_name(net, iwr->ifr_name)) == NULL) in wireless_process_ioctl()
1011 dev_load(net, iwr->ifr_name); in wext_ioctl_dispatch()
1072 iwr.ifr_name[sizeof(iwr.ifr_name) - 1] = 0; in wext_handle_ioctl()
1128 iwr.ifr_name[IFNAMSIZ-1] = 0; in compat_wext_handle_ioctl()
1129 colon = strchr(iwr.ifr_name, ':'); in compat_wext_handle_ioctl()
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dflow_dissector.c457 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in create_tap()
486 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in ifup()
Dlwt_helpers.h52 memcpy(ifr.ifr_name, dev_name, IFNAMSIZ); in open_tuntap()
Dtc_redirect.c942 strncpy(ifr.ifr_name, name, IFNAMSIZ); in tun_open()
/linux-6.6.21/arch/um/drivers/
Dvector_user.c144 strscpy(ifr.ifr_name, iface, sizeof(ifr.ifr_name)); in create_tap_fd()
174 strscpy(ifr.ifr_name, iface, sizeof(ifr.ifr_name)); in create_raw_fd()
/linux-6.6.21/include/uapi/linux/
Dif.h259 #define ifr_name ifr_ifrn.ifrn_name /* interface name */ macro
/linux-6.6.21/Documentation/networking/
Dtuntap.rst110 strscpy_pad(ifr.ifr_name, dev, IFNAMSIZ);
116 strcpy(dev, ifr.ifr_name);
164 strcpy(ifr.ifr_name, dev);
Dpacket_mmap.rst156 strscpy_pad (s_ifr.ifr_name, "eth0", sizeof(s_ifr.ifr_name));
656 strcpy(ifr.ifr_name, device_name);
/linux-6.6.21/tools/testing/selftests/bpf/
Dxdp_hw_metadata.c314 strncpy(ifr.ifr_name, ifname, IF_NAMESIZE - 1); in rxq_num()
335 strncpy(ifr.ifr_name, ifname, IF_NAMESIZE - 1); in hwtstamp_ioctl()
Dxdp_redirect_multi.c58 strcpy(ifr.ifr_name, ifname); in get_mac_addr()
/linux-6.6.21/arch/xtensa/platforms/iss/
Dnetwork.c173 strscpy(ifr.ifr_name, dev_name, sizeof(ifr.ifr_name)); in tuntap_open()
/linux-6.6.21/net/ipv4/
Ddevinet.c1045 ifr->ifr_name[IFNAMSIZ - 1] = 0; in devinet_ioctl()
1050 colon = strchr(ifr->ifr_name, ':'); in devinet_ioctl()
1054 dev_load(net, ifr->ifr_name); in devinet_ioctl()
1094 dev = __dev_get_by_name(net, ifr->ifr_name); in devinet_ioctl()
1113 if (!strcmp(ifr->ifr_name, ifa->ifa_label) && in devinet_ioctl()
1127 if (!strcmp(ifr->ifr_name, ifa->ifa_label)) in devinet_ioctl()
1182 memcpy(ifa->ifa_label, ifr->ifr_name, IFNAMSIZ); in devinet_ioctl()
1292 strcpy(ifr.ifr_name, ifa->ifa_label); in inet_gifconf()
/linux-6.6.21/net/ieee802154/
Dsocket.c134 ifr.ifr_name[IFNAMSIZ-1] = 0; in ieee802154_dev_ioctl()
136 dev_load(sock_net(sk), ifr.ifr_name); in ieee802154_dev_ioctl()
137 dev = dev_get_by_name(sock_net(sk), ifr.ifr_name); in ieee802154_dev_ioctl()
/linux-6.6.21/samples/bpf/
Dxdp_sample_user.c1617 safe_strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in get_driver_name()
1650 safe_strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in get_mac_addr()
/linux-6.6.21/drivers/net/
Dtun.c2761 dev = __dev_get_by_name(net, ifr->ifr_name); in tun_set_iff()
2825 if (*ifr->ifr_name) in tun_set_iff()
2826 name = ifr->ifr_name; in tun_set_iff()
2879 strcpy(ifr->ifr_name, tun->dev->name); in tun_set_iff()
2885 strcpy(ifr->ifr_name, tun->dev->name); in tun_get_iff()
3124 ifr.ifr_name[IFNAMSIZ-1] = '\0'; in __tun_chr_ioctl()
3529 seq_printf(m, "iff:\t%s\n", ifr.ifr_name); in tun_chr_show_fdinfo()
Dtap.c1046 if (copy_to_user(&ifr->ifr_name, tap->dev->name, IFNAMSIZ) || in tap_ioctl()
1132 if (copy_to_user(&ifr->ifr_name, tap->dev->name, IFNAMSIZ) || in tap_ioctl()
/linux-6.6.21/drivers/net/appletalk/
Dcops.c520 strcpy(ifr.ifr_name,"lt0"); in cops_load()
/linux-6.6.21/net/8021q/
Dvlan_dev.c384 strscpy_pad(ifrr.ifr_name, real_dev->name, IFNAMSIZ); in vlan_dev_ioctl()

12