Lines Matching refs:ifr
171 struct ifreq ifr; in wired_init_sockets() local
189 os_memset(&ifr, 0, sizeof(ifr)); in wired_init_sockets()
190 os_strlcpy(ifr.ifr_name, drv->common.ifname, sizeof(ifr.ifr_name)); in wired_init_sockets()
191 if (ioctl(drv->common.sock, SIOCGIFINDEX, &ifr) != 0) { in wired_init_sockets()
199 addr.sll_ifindex = ifr.ifr_ifindex; in wired_init_sockets()
210 if (wired_multicast_membership(drv->common.sock, ifr.ifr_ifindex, in wired_init_sockets()
217 os_memset(&ifr, 0, sizeof(ifr)); in wired_init_sockets()
218 os_strlcpy(ifr.ifr_name, drv->common.ifname, sizeof(ifr.ifr_name)); in wired_init_sockets()
219 if (ioctl(drv->common.sock, SIOCGIFHWADDR, &ifr) != 0) { in wired_init_sockets()
225 if (ifr.ifr_hwaddr.sa_family != ARPHRD_ETHER) { in wired_init_sockets()
227 ifr.ifr_hwaddr.sa_family); in wired_init_sockets()
230 os_memcpy(own_addr, ifr.ifr_hwaddr.sa_data, ETH_ALEN); in wired_init_sockets()
263 os_memset(&ifr, 0, sizeof(ifr)); in wired_init_sockets()
264 os_strlcpy(ifr.ifr_ifrn.ifrn_name, drv->common.ifname, IFNAMSIZ); in wired_init_sockets()
266 (char *) &ifr, sizeof(ifr)) < 0) { in wired_init_sockets()