Lines Matching defs:ifr
1192 struct ifreq ifr;
1195 ifr.ifr_ifindex = a->sll_ifindex;
1196 if (ioctl(sockfd, SIOCGIFNAME, &ifr) == 0)
1197 ifname = ifr.ifr_name;
1514 struct ifreq ifr;
1534 strncpy(ifr.ifr_name, interfaceName, sizeof(ifr.ifr_name));
1535 ifr.ifr_name[(sizeof(ifr.ifr_name))-1] = '\0';
1536 if (ioctl(s->sock_fd, SIOCGIFINDEX, &ifr) < 0) {
1554 addr->sll_ifindex = ifr.ifr_ifindex;