Home | History | Annotate | Download | only in network

Lines Matching defs:ifr

192 	struct ifreq ifr;
197 memset(&ifr, 0, sizeof(ifr));
198 strncpy(ifr.ifr_name, devname, IF_NAMESIZE - 1);
200 ifr.ifr_flags |= IFF_UP;
201 ifr.ifr_flags |= IFF_MULTICAST;
203 err = ioctl(sk, SIOCSIFFLAGS, (caddr_t) &ifr);
217 struct ifreq ifr;
222 memset(&ifr, 0, sizeof(ifr));
223 strncpy(ifr.ifr_name, devname, IF_NAMESIZE - 1);
225 ifr.ifr_flags &= ~IFF_UP;
228 err = ioctl(sk, SIOCSIFFLAGS, (caddr_t) &ifr);
238 struct ifreq ifr;
248 memset(&ifr, 0, sizeof(ifr));
249 strncpy(ifr.ifr_name, bridge, IFNAMSIZ - 1);
250 ifr.ifr_ifindex = ifindex;
252 err = ioctl(sk, SIOCBRADDIF, &ifr);