Home
last modified time | relevance | path

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

12

/linux/net/core/
A Ddev_ioctl.c26 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 Dtuntap_user.c149 strlcpy(ifr.ifr_name, pri->dev_name, sizeof(ifr.ifr_name)); in tuntap_open()
/linux/net/wireless/
A Dwext-core.c930 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 Dflow_dissector.c398 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 Dtc_redirect.c587 strncpy(ifr.ifr_name, name, IFNAMSIZ); in tun_open()
/linux/arch/um/drivers/
A Dvector_user.c144 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 Dhwtstamp_config.c114 strcpy(ifr.ifr_name, argv[1]); in main()
A Dtimestamping.c388 memcpy(device.ifr_name, interface, if_len + 1); in main()
393 memcpy(hwtstamp.ifr_name, interface, if_len + 1); in main()
A Dudpgso.c283 strcpy(ifr.ifr_name, ifname); in get_device_mtu()
298 strcpy(ifr.ifr_name, ifname); in __set_device_mtu()
/linux/Documentation/networking/
A Dtuntap.rst110 strscpy_pad(ifr.ifr_name, dev, IFNAMSIZ);
116 strcpy(dev, ifr.ifr_name);
164 strcpy(ifr.ifr_name, dev);
A Dpacket_mmap.rst156 strscpy_pad (s_ifr.ifr_name, "eth0", sizeof(s_ifr.ifr_name));
656 strcpy(ifr.ifr_name, device_name);
A Dcan.rst311 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 Dif.h259 #define ifr_name ifr_ifrn.ifrn_name /* interface name */ macro
/linux/net/ipv4/
A Ddevinet.c1022 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 Dxdp_redirect_multi.c59 strcpy(ifr.ifr_name, ifname); in get_mac_addr()
/linux/arch/xtensa/platforms/iss/
A Dnetwork.c177 strlcpy(ifr.ifr_name, dev_name, sizeof(ifr.ifr_name)); in tuntap_open()
/linux/net/decnet/
A Ddn_dev.c425 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 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/samples/bpf/
A Dxdp_sample_user.c1619 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 Dxdp_router_ipv4_user.c81 strncpy(ifr.ifr_name, iface, IFNAMSIZ - 1); in getmac()
/linux/drivers/net/
A Dtun.c2674 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 Dtap.c1009 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 Dxsk.c557 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 Dcops.c520 strcpy(ifr.ifr_name,"lt0"); in cops_load()
/linux/net/8021q/
A Dvlan_dev.c363 strscpy_pad(ifrr.ifr_name, real_dev->name, IFNAMSIZ); in vlan_dev_ioctl()

Completed in 68 milliseconds

12