Home
last modified time | relevance | path

Searched refs:ip_fd (Results 1 – 2 of 2) sorted by relevance

/external/qemu/net/
Dnet.c1170 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()
[all …]
Dnet-android.c1273 static int ip_fd = 0; in tap_alloc() local
1292 if( ip_fd ) in tap_alloc()
1293 close(ip_fd); in tap_alloc()
1295 TFR(ip_fd = open("/dev/udp", O_RDWR, 0)); in tap_alloc()
1296 if (ip_fd < 0) { in tap_alloc()
1343 if (ioctl (ip_fd, I_POP, NULL) < 0) in tap_alloc()
1345 if (ioctl (ip_fd, I_PUSH, "arp") < 0) in tap_alloc()
1361 if((ip_muxid = ioctl(ip_fd, I_LINK, if_fd)) < 0){ in tap_alloc()
1366 if ((arp_muxid = ioctl (ip_fd, link_type, arp_fd)) < 0) in tap_alloc()
1376 if (ioctl (ip_fd, SIOCSLIFMUXID, &ifr) < 0) in tap_alloc()
[all …]