/net/core/ |
H A D | dev_ioctl.c | 22 struct ifreq ifr; local 29 if (copy_from_user(&ifr, arg, sizeof(struct ifreq))) 32 error = netdev_get_name(net, ifr.ifr_name, ifr.ifr_ifindex); 36 if (copy_to_user(arg, &ifr, sizeof(struct ifreq))) 121 static int dev_ifsioc_locked(struct net *net, struct ifreq *ifr, unsigned int cmd) argument 124 struct net_device *dev = dev_get_by_name_rcu(net, ifr->ifr_name); 131 ifr->ifr_flags = (short) dev_get_flags(dev); 136 ifr->ifr_metric = 0; 140 ifr 185 net_hwtstamp_validate(struct ifreq *ifr) argument 239 dev_ifsioc(struct net *net, struct ifreq *ifr, unsigned int cmd) argument 392 struct ifreq ifr; local [all...] |
H A D | ethtool.c | 1703 int dev_ethtool(struct net *net, struct ifreq *ifr) argument 1705 struct net_device *dev = __dev_get_by_name(net, ifr->ifr_name); 1706 void __user *useraddr = ifr->ifr_data;
|
/net/ieee802154/ |
H A D | af_ieee802154.c | 142 struct ifreq ifr; local 146 if (copy_from_user(&ifr, arg, sizeof(struct ifreq))) 149 ifr.ifr_name[IFNAMSIZ-1] = 0; 151 dev_load(sock_net(sk), ifr.ifr_name); 152 dev = dev_get_by_name(sock_net(sk), ifr.ifr_name); 158 ret = dev->netdev_ops->ndo_do_ioctl(dev, &ifr, cmd); 160 if (!ret && copy_to_user(arg, &ifr, sizeof(struct ifreq)))
|
/net/wireless/ |
H A D | wext-core.c | 884 static int wireless_process_ioctl(struct net *net, struct ifreq *ifr, argument 890 struct iwreq *iwr = (struct iwreq *) ifr; 895 * The copy_to/from_user() of ifr is also dealt with in there */ 898 if ((dev = __dev_get_by_name(net, ifr->ifr_name)) == NULL) 929 return dev->netdev_ops->ndo_do_ioctl(dev, ifr, cmd); 947 static int wext_ioctl_dispatch(struct net *net, struct ifreq *ifr, argument 957 dev_load(net, ifr->ifr_name); 959 ret = wireless_process_ioctl(net, ifr, cmd, info, standard, private); 1009 int wext_handle_ioctl(struct net *net, struct ifreq *ifr, unsigned int cmd, argument 1015 ret = wext_ioctl_dispatch(net, ifr, cm [all...] |
/net/ipv4/ |
H A D | devinet.c | 887 struct ifreq ifr; local 889 struct sockaddr_in *sin = (struct sockaddr_in *)&ifr.ifr_addr; 902 if (copy_from_user(&ifr, arg, sizeof(struct ifreq))) 904 ifr.ifr_name[IFNAMSIZ - 1] = 0; 909 colon = strchr(ifr.ifr_name, ':'); 913 dev_load(net, ifr.ifr_name); 954 dev = __dev_get_by_name(net, ifr.ifr_name); 971 if (!strcmp(ifr.ifr_name, ifa->ifa_label) && 984 if (!strcmp(ifr.ifr_name, ifa->ifa_label)) 1017 if (!(ifr 1136 struct ifreq ifr; local [all...] |
H A D | ipip.c | 240 ipip_tunnel_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) argument 245 if (copy_from_user(&p, ifr->ifr_ifru.ifru_data, sizeof(p))) 262 if (copy_to_user(ifr->ifr_ifru.ifru_data, &p, sizeof(p)))
|
H A D | ip_vti.c | 302 vti_tunnel_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) argument 307 if (copy_from_user(&p, ifr->ifr_ifru.ifru_data, sizeof(p))) 332 if (copy_to_user(ifr->ifr_ifru.ifru_data, &p, sizeof(p)))
|
H A D | ip_gre.c | 313 struct ifreq *ifr, int cmd) 318 if (copy_from_user(&p, ifr->ifr_ifru.ifru_data, sizeof(p))) 336 if (copy_to_user(ifr->ifr_ifru.ifru_data, &p, sizeof(p))) 312 ipgre_tunnel_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) argument
|
H A D | ipmr.c | 366 struct ifreq ifr; local 376 ifr.ifr_ifru.ifru_data = (__force void __user *)&p; 382 ops->ndo_do_ioctl(dev, &ifr, SIOCDELTUNNEL); 398 struct ifreq ifr; local 409 ifr.ifr_ifru.ifru_data = (__force void __user *)&p; 415 err = ops->ndo_do_ioctl(dev, &ifr, SIOCADDTUNNEL);
|
/net/ |
H A D | socket.c | 2786 struct ifreq __user *ifr; local 2804 ifr = ifc.ifc_req = (void __user *)(uifc + 1); 2807 if (copy_in_user(ifr, ifr32, sizeof(struct compat_ifreq))) 2809 ifr++; 2823 ifr = ifc.ifc_req; 2828 if (copy_in_user(ifr32, ifr, sizeof(struct compat_ifreq))) 2831 ifr++; 2856 struct ifreq __user *ifr; local 2896 ifr = compat_alloc_user_space(buf_size); 2897 rxnfc = (void __user *)ifr 3085 struct ifreq ifr; local [all...] |
/net/ipx/ |
H A D | af_ipx.c | 1120 struct ifreq ifr; local 1129 if (copy_from_user(&ifr, arg, sizeof(ifr))) 1131 sipx = (struct sockaddr_ipx *)&ifr.ifr_addr; 1136 memcpy(f.ipx_device, ifr.ifr_name, 1154 if (copy_from_user(&ifr, arg, sizeof(ifr))) 1156 sipx = (struct sockaddr_ipx *)&ifr.ifr_addr; 1157 dev = __dev_get_by_name(&init_net, ifr.ifr_name); 1172 if (copy_to_user(arg, &ifr, sizeo [all...] |
/net/decnet/ |
H A D | dn_dev.c | 415 struct ifreq *ifr = (struct ifreq *)buffer; local 416 struct sockaddr_dn *sdn = (struct sockaddr_dn *)&ifr->ifr_addr; 423 if (copy_from_user(ifr, arg, DN_IFREQ_SIZE)) 425 ifr->ifr_name[IFNAMSIZ-1] = 0; 427 dev_load(&init_net, ifr->ifr_name); 444 if ((dev = __dev_get_by_name(&init_net, ifr->ifr_name)) == NULL) { 453 if (strcmp(ifr->ifr_name, ifa->ifa_label) == 0) 489 if (copy_to_user(arg, ifr, DN_IFREQ_SIZE))
|
/net/ipv6/ |
H A D | ip6_vti.c | 650 * @ifr: parameters passed from userspace 675 vti6_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) argument 687 if (copy_from_user(&p, ifr->ifr_ifru.ifru_data, sizeof(p))) { 699 if (copy_to_user(ifr->ifr_ifru.ifru_data, &p, sizeof(p))) 708 if (copy_from_user(&p, ifr->ifr_ifru.ifru_data, sizeof(p))) 729 if (copy_to_user(ifr->ifr_ifru.ifru_data, &p, sizeof(p))) 742 if (copy_from_user(&p, ifr->ifr_ifru.ifru_data, sizeof(p)))
|
H A D | sit.c | 1138 ipip6_tunnel_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) argument 1156 if (copy_from_user(&p, ifr->ifr_ifru.ifru_data, sizeof(p))) { 1168 if (copy_to_user(ifr->ifr_ifru.ifru_data, &p, 1177 if (copy_to_user(ifr->ifr_ifru.ifru_data, &ip6rd, 1192 if (copy_from_user(&p, ifr->ifr_ifru.ifru_data, sizeof(p))) 1228 if (copy_to_user(ifr->ifr_ifru.ifru_data, &t->parms, sizeof(p))) 1241 if (copy_from_user(&p, ifr->ifr_ifru.ifru_data, sizeof(p))) 1259 err = ipip6_tunnel_get_prl(t, ifr->ifr_ifru.ifru_data); 1272 if (copy_from_user(&prl, ifr->ifr_ifru.ifru_data, sizeof(prl))) 1297 if (copy_from_user(&ip6rd, ifr [all...] |
H A D | ip6_gre.c | 1058 struct ifreq *ifr, int cmd) 1070 if (copy_from_user(&p, ifr->ifr_ifru.ifru_data, sizeof(p))) { 1081 if (copy_to_user(ifr->ifr_ifru.ifru_data, &p, sizeof(p))) 1092 if (copy_from_user(&p, ifr->ifr_ifru.ifru_data, sizeof(p))) 1129 if (copy_to_user(ifr->ifr_ifru.ifru_data, &p, sizeof(p))) 1142 if (copy_from_user(&p, ifr->ifr_ifru.ifru_data, sizeof(p))) 1057 ip6gre_tunnel_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) argument
|
H A D | ip6_tunnel.c | 1316 * @ifr: parameters passed from userspace 1342 ip6_tnl_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) argument 1354 if (copy_from_user(&p, ifr->ifr_ifru.ifru_data, sizeof(p))) { 1366 if (copy_to_user(ifr->ifr_ifru.ifru_data, &p, sizeof(p))) { 1376 if (copy_from_user(&p, ifr->ifr_ifru.ifru_data, sizeof(p))) 1398 if (copy_to_user(ifr->ifr_ifru.ifru_data, &p, sizeof(p))) 1411 if (copy_from_user(&p, ifr->ifr_ifru.ifru_data, sizeof(p)))
|
H A D | addrconf.c | 2480 struct ifreq ifr; local 2494 ifr.ifr_ifru.ifru_data = (__force void __user *)&p; 2500 err = ops->ndo_do_ioctl(dev, &ifr, SIOCADDTUNNEL);
|
/net/l2tp/ |
H A D | l2tp_ppp.c | 1006 struct ifreq ifr; local 1028 if (copy_from_user(&ifr, (void __user *) arg, sizeof(struct ifreq))) 1030 ifr.ifr_mtu = session->mtu; 1031 if (copy_to_user((void __user *) arg, &ifr, sizeof(struct ifreq))) 1045 if (copy_from_user(&ifr, (void __user *) arg, sizeof(struct ifreq))) 1048 session->mtu = ifr.ifr_mtu;
|
/net/dsa/ |
H A D | slave.c | 186 static int dsa_slave_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) argument 191 return phy_mii_ioctl(p->phy, ifr, cmd);
|
/net/mac802154/ |
H A D | wpan.c | 61 mac802154_wpan_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) argument 65 (struct sockaddr_ieee802154 *)&ifr->ifr_addr;
|
/net/8021q/ |
H A D | vlan_dev.c | 374 static int vlan_dev_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) argument 382 ifrr.ifr_ifru = ifr->ifr_ifru; 396 ifr->ifr_ifru = ifrr.ifr_ifru;
|