Lines Matching refs:ifr
1009 int devinet_ioctl(struct net *net, unsigned int cmd, struct ifreq *ifr) in devinet_ioctl() argument
1012 struct sockaddr_in *sin = (struct sockaddr_in *)&ifr->ifr_addr; in devinet_ioctl()
1021 ifr->ifr_name[IFNAMSIZ - 1] = 0; in devinet_ioctl()
1026 colon = strchr(ifr->ifr_name, ':'); in devinet_ioctl()
1030 dev_load(net, ifr->ifr_name); in devinet_ioctl()
1070 dev = __dev_get_by_name(net, ifr->ifr_name); in devinet_ioctl()
1089 if (!strcmp(ifr->ifr_name, ifa->ifa_label) && in devinet_ioctl()
1103 if (!strcmp(ifr->ifr_name, ifa->ifa_label)) in devinet_ioctl()
1139 if (!(ifr->ifr_flags & IFF_UP)) in devinet_ioctl()
1143 ret = dev_change_flags(dev, ifr->ifr_flags, NULL); in devinet_ioctl()
1158 memcpy(ifa->ifa_label, ifr->ifr_name, IFNAMSIZ); in devinet_ioctl()
1251 struct ifreq ifr; in inet_gifconf() local
1267 memset(&ifr, 0, sizeof(struct ifreq)); in inet_gifconf()
1268 strcpy(ifr.ifr_name, ifa->ifa_label); in inet_gifconf()
1270 (*(struct sockaddr_in *)&ifr.ifr_addr).sin_family = AF_INET; in inet_gifconf()
1271 (*(struct sockaddr_in *)&ifr.ifr_addr).sin_addr.s_addr = in inet_gifconf()
1274 if (copy_to_user(buf + done, &ifr, size)) { in inet_gifconf()