Searched refs:tap_fd (Results 1 – 2 of 2) sorted by relevance
/external/qemu/ |
D | net-android.c | 1297 int tap_fd, if_fd, ppa = -1; in tap_alloc() local 1326 TFR(tap_fd = open("/dev/tap", O_RDWR, 0)); in tap_alloc() 1327 if (tap_fd < 0) { in tap_alloc() 1337 if ((ppa = ioctl (tap_fd, I_STR, &strioc_ppa)) < 0) in tap_alloc() 1409 return tap_fd; in tap_alloc()
|
D | net.c | 1169 int tap_fd, if_fd, ppa = -1; in tap_alloc() local 1198 TFR(tap_fd = open("/dev/tap", O_RDWR, 0)); in tap_alloc() 1199 if (tap_fd < 0) { in tap_alloc() 1209 if ((ppa = ioctl (tap_fd, I_STR, &strioc_ppa)) < 0) in tap_alloc() 1281 return tap_fd; in tap_alloc()
|