Home | History | Annotate | Download | only in net

Lines Matching refs:if_fd

1272     int tap_fd, if_fd, ppa = -1;
1315 TFR(if_fd = open("/dev/tap", O_RDWR, 0));
1316 if (if_fd < 0) {
1320 if(ioctl(if_fd, I_PUSH, "ip") < 0){
1325 if (ioctl(if_fd, SIOCGLIFFLAGS, &ifr) < 0)
1334 if (ioctl (if_fd, SIOCSLIFNAME, &ifr) < 0)
1336 if (ioctl(if_fd, SIOCGLIFFLAGS, &ifr) <0)
1338 /* Push arp module to if_fd */
1339 if (ioctl (if_fd, I_PUSH, "arp") < 0)
1361 if((ip_muxid = ioctl(ip_fd, I_LINK, if_fd)) < 0){
1369 close (if_fd);