Lines Matching refs:ifr
462 struct ifreq ifr; in devinet_ioctl() local
464 struct sockaddr_in *sin = (struct sockaddr_in *)&ifr.ifr_addr; in devinet_ioctl()
477 if (copy_from_user(&ifr, arg, sizeof(struct ifreq))) in devinet_ioctl()
479 ifr.ifr_name[IFNAMSIZ-1] = 0; in devinet_ioctl()
484 colon = strchr(ifr.ifr_name, ':'); in devinet_ioctl()
489 dev_load(ifr.ifr_name); in devinet_ioctl()
526 if ((dev = __dev_get_by_name(ifr.ifr_name)) == NULL) { in devinet_ioctl()
542 if ((strcmp(ifr.ifr_name, ifa->ifa_label) == 0) in devinet_ioctl()
553 if (strcmp(ifr.ifr_name, ifa->ifa_label) == 0) in devinet_ioctl()
586 if (!(ifr.ifr_flags&IFF_UP)) in devinet_ioctl()
590 ret = dev_change_flags(dev, ifr.ifr_flags); in devinet_ioctl()
605 memcpy(ifa->ifa_label, ifr.ifr_name, IFNAMSIZ); in devinet_ioctl()
694 if (copy_to_user(arg, &ifr, sizeof(struct ifreq))) in devinet_ioctl()
704 struct ifreq ifr; in inet_gifconf() local
712 done += sizeof(ifr); in inet_gifconf()
715 if (len < (int) sizeof(ifr)) in inet_gifconf()
717 memset(&ifr, 0, sizeof(struct ifreq)); in inet_gifconf()
719 strcpy(ifr.ifr_name, ifa->ifa_label); in inet_gifconf()
721 strcpy(ifr.ifr_name, dev->name); in inet_gifconf()
723 (*(struct sockaddr_in *) &ifr.ifr_addr).sin_family = AF_INET; in inet_gifconf()
724 (*(struct sockaddr_in *) &ifr.ifr_addr).sin_addr.s_addr = ifa->ifa_local; in inet_gifconf()
726 if (copy_to_user(buf, &ifr, sizeof(struct ifreq))) in inet_gifconf()