Home | History | Annotate | Download | only in qemu

Lines Matching refs:if_fd

1169     int tap_fd, if_fd, ppa = -1;
1212 TFR(if_fd = open("/dev/tap", O_RDWR, 0));
1213 if (if_fd < 0) {
1217 if(ioctl(if_fd, I_PUSH, "ip") < 0){
1222 if (ioctl(if_fd, SIOCGLIFFLAGS, &ifr) < 0)
1231 if (ioctl (if_fd, SIOCSLIFNAME, &ifr) < 0)
1233 if (ioctl(if_fd, SIOCGLIFFLAGS, &ifr) <0)
1235 /* Push arp module to if_fd */
1236 if (ioctl (if_fd, I_PUSH, "arp") < 0)
1258 if((ip_muxid = ioctl(ip_fd, I_LINK, if_fd)) < 0){
1266 close (if_fd);