Lines Matching refs:ifreq
1194 struct ifreq ifr; in netif_set_mtu()
1210 struct ifreq ifr; in netif_get_mtu()
1780 struct ifreq *ifr, *ifend; in get_ether_addr()
1783 struct ifreq ifreq, bestifreq; in get_ether_addr() local
1785 struct ifreq ifs[MAX_IFS]; in get_ether_addr()
1802 ifend = ifs + (ifc.ifc_len / sizeof(struct ifreq)); in get_ether_addr()
1806 strlcpy(ifreq.ifr_name, ifr->ifr_name, sizeof(ifreq.ifr_name)); in get_ether_addr()
1811 if (ioctl(sock_fd, SIOCGIFFLAGS, &ifreq) < 0) in get_ether_addr()
1814 if (((ifreq.ifr_flags ^ FLAGS_GOOD) & FLAGS_MASK) != 0) in get_ether_addr()
1819 if (ioctl(sock_fd, SIOCGIFNETMASK, &ifreq) < 0) in get_ether_addr()
1822 mask = SIN_ADDR(ifreq.ifr_addr); in get_ether_addr()
1831 bestifreq = ifreq; in get_ether_addr()
1870 struct ifreq ifreq; in get_if_hwaddr() local
1876 memset(&ifreq.ifr_hwaddr, 0, sizeof(struct sockaddr)); in get_if_hwaddr()
1877 strlcpy(ifreq.ifr_name, name, sizeof(ifreq.ifr_name)); in get_if_hwaddr()
1878 ret = ioctl(sock_fd, SIOCGIFHWADDR, &ifreq); in get_if_hwaddr()
1881 memcpy(addr, ifreq.ifr_hwaddr.sa_data, 6); in get_if_hwaddr()
1908 struct ifreq *ifr, *ifend, ifreq; in GetMask() local
1910 struct ifreq ifs[MAX_IFS]; in GetMask()
1934 ifend = (struct ifreq *) (ifc.ifc_buf + ifc.ifc_len); in GetMask()
1947 strlcpy(ifreq.ifr_name, ifr->ifr_name, sizeof(ifreq.ifr_name)); in GetMask()
1948 if (ioctl(sock_fd, SIOCGIFFLAGS, &ifreq) < 0) in GetMask()
1951 if (((ifreq.ifr_flags ^ FLAGS_GOOD) & FLAGS_MASK) != 0) in GetMask()
1956 if (ioctl(sock_fd, SIOCGIFNETMASK, &ifreq) < 0) in GetMask()
1958 mask |= SIN_ADDR(ifreq.ifr_addr); in GetMask()
2035 struct ifreq ifr; in ppp_available()
2337 struct ifreq ifr; in setifstate()
2368 struct ifreq ifr; in sifaddr()
2470 struct ifreq ifr; in cifaddr()
2524 struct ifreq ifr; in sif6addr()
2573 struct ifreq ifr; in cif6addr()
2768 struct ifreq ifr; in sipxfaddr()
2819 struct ifreq ifr; in cipxfaddr()
2912 struct ifreq ifr; in ether_to_eui64()