Searched refs:ifrq (Results 1 - 3 of 3) sorted by relevance
/freebsd-9.3-release/libexec/bootpd/ |
H A D | getif.c | 49 struct ifreq *ifrq, *ifrmax; local 87 ifrq = (struct ifreq *) p; 88 sip = (struct sockaddr_in *) &ifrq->ifr_addr; 92 ifrmax = ifrq; 96 incr = sizeof(*ifrq); 98 incr = ifrq->ifr_addr.sa_len + IFNAMSIZ;
|
/freebsd-9.3-release/sbin/nos-tun/ |
H A D | nos-tun.c | 84 static struct ifreq ifrq; variable in typeref:struct:ifreq 128 bzero((char *)&ifrq, sizeof(ifrq)); 130 strncpy(ifrq.ifr_name, dev_name+5, IFNAMSIZ); 176 if (ioctl(s, SIOCGIFFLAGS, &ifrq) < 0) { 181 ifrq.ifr_flags |= IFF_UP; 182 if (!(ioctl(s, SIOCSIFFLAGS, &ifrq) < 0)) { 212 if (ioctl(s, SIOCGIFFLAGS, &ifrq) < 0) { 217 ifrq.ifr_flags &= ~(IFF_UP|IFF_RUNNING); 218 if (ioctl(s, SIOCSIFFLAGS, &ifrq) < [all...] |
/freebsd-9.3-release/usr.sbin/ppp/ |
H A D | iface.c | 651 struct ifreq ifrq; local 660 memset(&ifrq, '\0', sizeof ifrq); 661 strncpy(ifrq.ifr_name, ifname, sizeof ifrq.ifr_name - 1); 662 ifrq.ifr_name[sizeof ifrq.ifr_name - 1] = '\0'; 663 if (ID0ioctl(s, SIOCGIFFLAGS, &ifrq) < 0) { 670 new_flags = (ifrq.ifr_flags & 0xffff) | (ifrq [all...] |
Completed in 99 milliseconds