Lines Matching refs:ifreq
387 struct ifreq *pifreq; in get_first_ethernet()
388 struct ifreq ifr; in get_first_ethernet()
405 req_size = num_ifs * sizeof(struct ifreq); in get_first_ethernet()
431 for (i = ifc.ifc_len / sizeof(struct ifreq); i > 0; i--, pifreq++) { in get_first_ethernet()
576 struct ifreq ifr; in sys_init()
776 struct ifreq ifr; in sys_cleanup()
1508 struct ifreq ifr;
1769 struct ifreq ifr;
1792 struct ifreq ifr;
1973 struct ifreq ifr;
2155 struct ifreq *ifr, *ifend, ifreq; local
2167 ifc.ifc_len = nif * sizeof(struct ifreq);
2176 ifend = (struct ifreq *) (ifc.ifc_buf + ifc.ifc_len);
2183 strlcpy(ifreq.ifr_name, ifr->ifr_name, sizeof(ifreq.ifr_name));
2184 if (ioctl(ipfd, SIOCGIFFLAGS, &ifreq) < 0)
2186 if ((ifreq.ifr_flags &
2193 if (ioctl(ipfd, SIOCGIFNETMASK, &ifreq) < 0)
2196 mask = INET_ADDR(ifreq.ifr_addr);
2398 struct ifreq *ifr, *ifend, ifreq; local
2419 ifc.ifc_len = nif * sizeof(struct ifreq);
2428 ifend = (struct ifreq *) (ifc.ifc_buf + ifc.ifc_len);
2441 strlcpy(ifreq.ifr_name, ifr->ifr_name, sizeof(ifreq.ifr_name));
2442 if (ioctl(ipfd, SIOCGIFFLAGS, &ifreq) < 0)
2444 if ((ifreq.ifr_flags & (IFF_UP|IFF_POINTOPOINT|IFF_LOOPBACK))
2450 if (ioctl(ipfd, SIOCGIFNETMASK, &ifreq) < 0)
2452 mask |= INET_ADDR(ifreq.ifr_addr);