Lines Matching refs:ifr
95 struct ifreq ifr;
101 memset(&ifr, 0, sizeof(ifr));
108 ifr.ifr_flags = IFF_TUN;
110 strscpy_pad(ifr.ifr_name, dev, IFNAMSIZ);
112 if( (err = ioctl(fd, TUNSETIFF, (void *) &ifr)) < 0 ){
116 strcpy(dev, ifr.ifr_name);
150 struct ifreq ifr;
156 memset(&ifr, 0, sizeof(ifr));
163 ifr.ifr_flags = IFF_TAP | IFF_NO_PI | IFF_MULTI_QUEUE;
164 strcpy(ifr.ifr_name, dev);
169 err = ioctl(fd, TUNSETIFF, (void *)&ifr);
197 struct ifreq ifr;
199 memset(&ifr, 0, sizeof(ifr));
202 ifr.ifr_flags = IFF_ATTACH_QUEUE;
204 ifr.ifr_flags = IFF_DETACH_QUEUE;
206 return ioctl(fd, TUNSETQUEUE, (void *)&ifr);