/linux/net/core/ |
A D | dev_ioctl.c | 26 ifr->ifr_name[IFNAMSIZ-1] = 0; in dev_ifname() 27 return netdev_get_name(net, ifr->ifr_name, ifr->ifr_ifindex); in dev_ifname() 314 struct net_device *dev = __dev_get_by_name(net, ifr->ifr_name); in dev_ifsioc() 481 ifr->ifr_name[IFNAMSIZ-1] = 0; in dev_ioctl() 483 colon = strchr(ifr->ifr_name, ':'); in dev_ioctl() 493 dev_load(net, ifr->ifr_name); in dev_ioctl() 511 dev_load(net, ifr->ifr_name); in dev_ioctl() 520 dev_load(net, ifr->ifr_name); in dev_ioctl() 535 dev_load(net, ifr->ifr_name); in dev_ioctl() 583 dev_load(net, ifr->ifr_name); in dev_ioctl() [all …]
|
/linux/arch/um/os-Linux/drivers/ |
A D | tuntap_user.c | 149 strlcpy(ifr.ifr_name, pri->dev_name, sizeof(ifr.ifr_name)); in tuntap_open()
|
/linux/net/wireless/ |
A D | wext-core.c | 930 if ((dev = __dev_get_by_name(net, iwr->ifr_name)) == NULL) in wireless_process_ioctl() 986 dev_load(net, iwr->ifr_name); in wext_ioctl_dispatch() 1047 iwr.ifr_name[sizeof(iwr.ifr_name) - 1] = 0; in wext_handle_ioctl() 1103 iwr.ifr_name[IFNAMSIZ-1] = 0; in compat_wext_handle_ioctl() 1104 colon = strchr(iwr.ifr_name, ':'); in compat_wext_handle_ioctl()
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
A D | flow_dissector.c | 398 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in create_tap() 427 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in ifup()
|
A D | tc_redirect.c | 587 strncpy(ifr.ifr_name, name, IFNAMSIZ); in tun_open()
|
/linux/arch/um/drivers/ |
A D | vector_user.c | 144 strncpy((char *)&ifr.ifr_name, iface, sizeof(ifr.ifr_name) - 1); in create_tap_fd() 174 strncpy((char *)&ifr.ifr_name, iface, sizeof(ifr.ifr_name) - 1); in create_raw_fd()
|
/linux/tools/testing/selftests/net/ |
A D | hwtstamp_config.c | 114 strcpy(ifr.ifr_name, argv[1]); in main()
|
A 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()
|
A D | udpgso.c | 283 strcpy(ifr.ifr_name, ifname); in get_device_mtu() 298 strcpy(ifr.ifr_name, ifname); in __set_device_mtu()
|
/linux/Documentation/networking/ |
A D | tuntap.rst | 110 strscpy_pad(ifr.ifr_name, dev, IFNAMSIZ); 116 strcpy(dev, ifr.ifr_name); 164 strcpy(ifr.ifr_name, dev);
|
A D | packet_mmap.rst | 156 strscpy_pad (s_ifr.ifr_name, "eth0", sizeof(s_ifr.ifr_name)); 656 strcpy(ifr.ifr_name, device_name);
|
A D | can.rst | 311 strcpy(ifr.ifr_name, "can0" ); 371 printf("Received a CAN frame from interface %s", ifr.ifr_name); 378 strcpy(ifr.ifr_name, "can0"); 761 strcpy(ifr.ifr_name, "can0");
|
/linux/include/uapi/linux/ |
A D | if.h | 259 #define ifr_name ifr_ifrn.ifrn_name /* interface name */ macro
|
/linux/net/ipv4/ |
A D | devinet.c | 1022 ifr->ifr_name[IFNAMSIZ - 1] = 0; in devinet_ioctl() 1027 colon = strchr(ifr->ifr_name, ':'); in devinet_ioctl() 1031 dev_load(net, ifr->ifr_name); in devinet_ioctl() 1071 dev = __dev_get_by_name(net, ifr->ifr_name); in devinet_ioctl() 1090 if (!strcmp(ifr->ifr_name, ifa->ifa_label) && in devinet_ioctl() 1104 if (!strcmp(ifr->ifr_name, ifa->ifa_label)) in devinet_ioctl() 1159 memcpy(ifa->ifa_label, ifr->ifr_name, IFNAMSIZ); in devinet_ioctl() 1269 strcpy(ifr.ifr_name, ifa->ifa_label); in inet_gifconf()
|
/linux/tools/testing/selftests/bpf/ |
A D | xdp_redirect_multi.c | 59 strcpy(ifr.ifr_name, ifname); in get_mac_addr()
|
/linux/arch/xtensa/platforms/iss/ |
A D | network.c | 177 strlcpy(ifr.ifr_name, dev_name, sizeof(ifr.ifr_name)); in tuntap_open()
|
/linux/net/decnet/ |
A D | dn_dev.c | 425 ifr->ifr_name[IFNAMSIZ-1] = 0; in dn_dev_ioctl() 427 dev_load(&init_net, ifr->ifr_name); in dn_dev_ioctl() 444 if ((dev = __dev_get_by_name(&init_net, ifr->ifr_name)) == NULL) { in dn_dev_ioctl() 453 if (strcmp(ifr->ifr_name, ifa->ifa_label) == 0) in dn_dev_ioctl()
|
/linux/net/ieee802154/ |
A 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/samples/bpf/ |
A D | xdp_sample_user.c | 1619 safe_strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in get_driver_name() 1652 safe_strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in get_mac_addr()
|
A D | xdp_router_ipv4_user.c | 81 strncpy(ifr.ifr_name, iface, IFNAMSIZ - 1); in getmac()
|
/linux/drivers/net/ |
A D | tun.c | 2674 dev = __dev_get_by_name(net, ifr->ifr_name); in tun_set_iff() 2738 if (*ifr->ifr_name) in tun_set_iff() 2739 name = ifr->ifr_name; in tun_set_iff() 2789 strcpy(ifr->ifr_name, tun->dev->name); in tun_set_iff() 2795 strcpy(ifr->ifr_name, tun->dev->name); in tun_get_iff() 3027 ifr.ifr_name[IFNAMSIZ-1] = '\0'; in __tun_chr_ioctl() 3428 seq_printf(m, "iff:\t%s\n", ifr.ifr_name); in tun_chr_show_fdinfo()
|
A D | tap.c | 1009 if (copy_to_user(&ifr->ifr_name, tap->dev->name, IFNAMSIZ) || in tap_ioctl() 1094 if (copy_to_user(&ifr->ifr_name, tap->dev->name, IFNAMSIZ) || in tap_ioctl()
|
/linux/tools/lib/bpf/ |
A D | xsk.c | 557 memcpy(ifr.ifr_name, ctx->ifname, IFNAMSIZ - 1); in xsk_get_max_queues() 558 ifr.ifr_name[IFNAMSIZ - 1] = '\0'; in xsk_get_max_queues()
|
/linux/drivers/net/appletalk/ |
A D | cops.c | 520 strcpy(ifr.ifr_name,"lt0"); in cops_load()
|
/linux/net/8021q/ |
A D | vlan_dev.c | 363 strscpy_pad(ifrr.ifr_name, real_dev->name, IFNAMSIZ); in vlan_dev_ioctl()
|