Lines Matching refs:ifr
58 struct ifreq *ifr; in osl_getEthernetAddress() local
102 ifr = ifc.ifc_req; in osl_getEthernetAddress()
103 for ( i = ifc.ifc_len / sizeof(struct ifreq) ; --i >= 0 ; ifr++ ) in osl_getEthernetAddress()
106 nRet = osl_getHWAddr(ifr->ifr_name,hard_addr); in osl_getEthernetAddress()
126 struct ifreq ifr; in osl_getHWAddr() local
129 strcpy(ifr.ifr_name, ifname); in osl_getHWAddr()
135 ret=ioctl(so, SIOCGIFFLAGS, &ifr) ; in osl_getHWAddr()
149 if (ifr.ifr_flags & IFF_LOOPBACK) in osl_getHWAddr()
162 ret=ioctl(so, SIOCGIFHWADDR, &ifr); in osl_getHWAddr()
164 ret=ioctl(so, SIOCGIFADDR, &ifr); in osl_getHWAddr()
177 memcpy(hard_addr,ifr.ifr_hwaddr.sa_data,8); in osl_getHWAddr()
179 memcpy(hard_addr,ifr.ifr_ifru.ifru_addr.sa_data,8); in osl_getHWAddr()