Lines Matching refs:ip_fd
1170 static int ip_fd = 0; in tap_alloc() local
1189 if( ip_fd ) in tap_alloc()
1190 close(ip_fd); in tap_alloc()
1192 TFR(ip_fd = open("/dev/udp", O_RDWR, 0)); in tap_alloc()
1193 if (ip_fd < 0) { in tap_alloc()
1240 if (ioctl (ip_fd, I_POP, NULL) < 0) in tap_alloc()
1242 if (ioctl (ip_fd, I_PUSH, "arp") < 0) in tap_alloc()
1258 if((ip_muxid = ioctl(ip_fd, I_LINK, if_fd)) < 0){ in tap_alloc()
1263 if ((arp_muxid = ioctl (ip_fd, link_type, arp_fd)) < 0) in tap_alloc()
1273 if (ioctl (ip_fd, SIOCSLIFMUXID, &ifr) < 0) in tap_alloc()
1275 ioctl (ip_fd, I_PUNLINK , arp_muxid); in tap_alloc()
1276 ioctl (ip_fd, I_PUNLINK, ip_muxid); in tap_alloc()