tag | line | file | source code |
ifr | 188 | drivers/net/plip.c | static int plip_ioctl(struct device *dev, struct ifreq *ifr); |
ifr | 97 | drivers/net/ppp.c | static int ppp_dev_ioctl(struct device *dev, struct ifreq *ifr); |
ifr | 610 | drivers/net/ppp.c | static int ppp_dev_ioctl(struct device *dev, struct ifreq *ifr) |
ifr | 622 | drivers/net/ppp.c | ifr->ifr_ifru.ifru_data, |
ifr | 626 | drivers/net/ppp.c | result = (struct stats *) ifr->ifr_ifru.ifru_data; |
ifr | 141 | include/linux/netdevice.h | int (*do_ioctl)(struct device *dev, struct ifreq *ifr); |
ifr | 870 | net/inet/dev.c | struct ifreq ifr; |
ifr | 904 | net/inet/dev.c | memset(&ifr, 0, sizeof(struct ifreq)); |
ifr | 905 | net/inet/dev.c | strcpy(ifr.ifr_name, dev->name); |
ifr | 906 | net/inet/dev.c | (*(struct sockaddr_in *) &ifr.ifr_addr).sin_family = dev->family; |
ifr | 907 | net/inet/dev.c | (*(struct sockaddr_in *) &ifr.ifr_addr).sin_addr.s_addr = dev->pa_addr; |
ifr | 913 | net/inet/dev.c | memcpy_tofs(pos, &ifr, sizeof(struct ifreq)); |
ifr | 1037 | net/inet/dev.c | struct ifreq ifr; |
ifr | 1049 | net/inet/dev.c | memcpy_fromfs(&ifr, arg, sizeof(struct ifreq)); |
ifr | 1055 | net/inet/dev.c | if ((dev = dev_get(ifr.ifr_name)) == NULL) |
ifr | 1061 | net/inet/dev.c | ifr.ifr_flags = dev->flags; |
ifr | 1062 | net/inet/dev.c | memcpy_tofs(arg, &ifr, sizeof(struct ifreq)); |
ifr | 1072 | net/inet/dev.c | dev->flags = ifr.ifr_flags & ( |
ifr | 1124 | net/inet/dev.c | &ifr.ifr_addr).sin_addr.s_addr = dev->pa_addr; |
ifr | 1126 | net/inet/dev.c | &ifr.ifr_addr).sin_family = dev->family; |
ifr | 1128 | net/inet/dev.c | &ifr.ifr_addr).sin_port = 0; |
ifr | 1129 | net/inet/dev.c | memcpy_tofs(arg, &ifr, sizeof(struct ifreq)); |
ifr | 1135 | net/inet/dev.c | &ifr.ifr_addr).sin_addr.s_addr; |
ifr | 1136 | net/inet/dev.c | dev->family = ifr.ifr_addr.sa_family; |
ifr | 1149 | net/inet/dev.c | &ifr.ifr_broadaddr).sin_addr.s_addr = dev->pa_brdaddr; |
ifr | 1151 | net/inet/dev.c | &ifr.ifr_broadaddr).sin_family = dev->family; |
ifr | 1153 | net/inet/dev.c | &ifr.ifr_broadaddr).sin_port = 0; |
ifr | 1154 | net/inet/dev.c | memcpy_tofs(arg, &ifr, sizeof(struct ifreq)); |
ifr | 1160 | net/inet/dev.c | &ifr.ifr_broadaddr).sin_addr.s_addr; |
ifr | 1166 | net/inet/dev.c | &ifr.ifr_dstaddr).sin_addr.s_addr = dev->pa_dstaddr; |
ifr | 1168 | net/inet/dev.c | &ifr.ifr_broadaddr).sin_family = dev->family; |
ifr | 1170 | net/inet/dev.c | &ifr.ifr_broadaddr).sin_port = 0; |
ifr | 1171 | net/inet/dev.c | memcpy_tofs(arg, &ifr, sizeof(struct ifreq)); |
ifr | 1177 | net/inet/dev.c | &ifr.ifr_dstaddr).sin_addr.s_addr; |
ifr | 1183 | net/inet/dev.c | &ifr.ifr_netmask).sin_addr.s_addr = dev->pa_mask; |
ifr | 1185 | net/inet/dev.c | &ifr.ifr_netmask).sin_family = dev->family; |
ifr | 1187 | net/inet/dev.c | &ifr.ifr_netmask).sin_port = 0; |
ifr | 1188 | net/inet/dev.c | memcpy_tofs(arg, &ifr, sizeof(struct ifreq)); |
ifr | 1195 | net/inet/dev.c | &ifr.ifr_netmask).sin_addr.s_addr; |
ifr | 1209 | net/inet/dev.c | ifr.ifr_metric = dev->metric; |
ifr | 1210 | net/inet/dev.c | memcpy_tofs(arg, &ifr, sizeof(struct ifreq)); |
ifr | 1215 | net/inet/dev.c | dev->metric = ifr.ifr_metric; |
ifr | 1220 | net/inet/dev.c | ifr.ifr_mtu = dev->mtu; |
ifr | 1221 | net/inet/dev.c | memcpy_tofs(arg, &ifr, sizeof(struct ifreq)); |
ifr | 1231 | net/inet/dev.c | if(ifr.ifr_mtu<1 || ifr.ifr_mtu>3800) |
ifr | 1233 | net/inet/dev.c | dev->mtu = ifr.ifr_mtu; |
ifr | 1249 | net/inet/dev.c | memcpy(ifr.old_ifr_hwaddr,dev->dev_addr, MAX_ADDR_LEN); |
ifr | 1250 | net/inet/dev.c | memcpy_tofs(arg,&ifr,sizeof(struct ifreq)); |
ifr | 1255 | net/inet/dev.c | memcpy(ifr.ifr_hwaddr.sa_data,dev->dev_addr, MAX_ADDR_LEN); |
ifr | 1256 | net/inet/dev.c | ifr.ifr_hwaddr.sa_family=dev->type; |
ifr | 1257 | net/inet/dev.c | memcpy_tofs(arg,&ifr,sizeof(struct ifreq)); |
ifr | 1264 | net/inet/dev.c | if(ifr.ifr_hwaddr.sa_family!=dev->type) |
ifr | 1266 | net/inet/dev.c | ret=dev->set_mac_address(dev,ifr.ifr_hwaddr.sa_data); |
ifr | 1272 | net/inet/dev.c | ret=dev->do_ioctl(dev, &ifr); |
ifr | 1273 | net/inet/dev.c | memcpy_tofs(arg,&ifr,sizeof(struct ifreq)); |
ifr | 1277 | net/inet/dev.c | ifr.ifr_map.mem_start=dev->mem_start; |
ifr | 1278 | net/inet/dev.c | ifr.ifr_map.mem_end=dev->mem_end; |
ifr | 1279 | net/inet/dev.c | ifr.ifr_map.base_addr=dev->base_addr; |
ifr | 1280 | net/inet/dev.c | ifr.ifr_map.irq=dev->irq; |
ifr | 1281 | net/inet/dev.c | ifr.ifr_map.dma=dev->dma; |
ifr | 1282 | net/inet/dev.c | ifr.ifr_map.port=dev->if_port; |
ifr | 1283 | net/inet/dev.c | memcpy_tofs(arg,&ifr,sizeof(struct ifreq)); |
ifr | 1290 | net/inet/dev.c | return dev->set_config(dev,&ifr.ifr_map); |
ifr | 1296 | net/inet/dev.c | strncpy(ifr.ifr_name,dev->name,sizeof(ifr.ifr_name)); |
ifr | 1297 | net/inet/dev.c | memcpy_tofs(arg,&ifr,sizeof(struct ifreq)); |
ifr | 1312 | net/inet/dev.c | struct device *slave=dev_get(ifr.ifr_slave); |