/linux-6.6.21/net/core/ |
D | dev_ioctl.c | 29 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/ |
D | tun.c | 25 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()
|
D | hwtstamp_config.c | 116 strcpy(ifr.ifr_name, argv[1]); in main()
|
D | timestamping.c | 388 memcpy(device.ifr_name, interface, if_len + 1); in main() 393 memcpy(hwtstamp.ifr_name, interface, if_len + 1); in main()
|
D | udpgso.c | 283 strcpy(ifr.ifr_name, ifname); in get_device_mtu() 298 strcpy(ifr.ifr_name, ifname); in __set_device_mtu()
|
D | tap.c | 214 strcpy(ifr.ifr_name, devname); in opentap()
|
/linux-6.6.21/arch/um/os-Linux/drivers/ |
D | tuntap_user.c | 149 strscpy(ifr.ifr_name, pri->dev_name, sizeof(ifr.ifr_name)); in tuntap_open()
|
/linux-6.6.21/net/wireless/ |
D | wext-core.c | 955 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/ |
D | flow_dissector.c | 457 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in create_tap() 486 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in ifup()
|
D | lwt_helpers.h | 52 memcpy(ifr.ifr_name, dev_name, IFNAMSIZ); in open_tuntap()
|
D | tc_redirect.c | 942 strncpy(ifr.ifr_name, name, IFNAMSIZ); in tun_open()
|
/linux-6.6.21/arch/um/drivers/ |
D | vector_user.c | 144 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/ |
D | if.h | 259 #define ifr_name ifr_ifrn.ifrn_name /* interface name */ macro
|
/linux-6.6.21/Documentation/networking/ |
D | tuntap.rst | 110 strscpy_pad(ifr.ifr_name, dev, IFNAMSIZ); 116 strcpy(dev, ifr.ifr_name); 164 strcpy(ifr.ifr_name, dev);
|
D | packet_mmap.rst | 156 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/ |
D | xdp_hw_metadata.c | 314 strncpy(ifr.ifr_name, ifname, IF_NAMESIZE - 1); in rxq_num() 335 strncpy(ifr.ifr_name, ifname, IF_NAMESIZE - 1); in hwtstamp_ioctl()
|
D | xdp_redirect_multi.c | 58 strcpy(ifr.ifr_name, ifname); in get_mac_addr()
|
/linux-6.6.21/arch/xtensa/platforms/iss/ |
D | network.c | 173 strscpy(ifr.ifr_name, dev_name, sizeof(ifr.ifr_name)); in tuntap_open()
|
/linux-6.6.21/net/ipv4/ |
D | devinet.c | 1045 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/ |
D | socket.c | 134 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/ |
D | xdp_sample_user.c | 1617 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/ |
D | tun.c | 2761 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()
|
D | tap.c | 1046 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/ |
D | cops.c | 520 strcpy(ifr.ifr_name,"lt0"); in cops_load()
|
/linux-6.6.21/net/8021q/ |
D | vlan_dev.c | 384 strscpy_pad(ifrr.ifr_name, real_dev->name, IFNAMSIZ); in vlan_dev_ioctl()
|