Searched refs:if_fd (Results 1 – 3 of 3) sorted by relevance
/external/libpcap/ |
D | pcap-enet.c | 52 readloop(int cnt, int if_fd, struct bpf_program *fp, printfunc printit) in readloop() argument 70 if ((cc = read(if_fd, (char *)buf.p, sizeof(buf))) < 0) in readloop() 71 efReadError(if_fd, "reader"); in readloop() 104 wrapup(if_fd); in readloop() 157 int if_fd; in initdevice() local 160 GETENETDEVICE(0, O_RDONLY, &if_fd); in initdevice() 162 if_fd = open("/dev/enet", O_RDONLY, 0); in initdevice() 165 if (if_fd == -1) { in initdevice() 174 if (ioctl(if_fd, EIOCGETP, (char *)&ctl) == -1) { in initdevice() 190 if (ioctl(if_fd, EIOCSETP, &ctl) == -1) { in initdevice() [all …]
|
/external/qemu/ |
D | net-android.c | 1293 int tap_fd, if_fd, ppa = -1; in tap_alloc() local 1336 TFR(if_fd = open("/dev/tap", O_RDWR, 0)); in tap_alloc() 1337 if (if_fd < 0) { in tap_alloc() 1341 if(ioctl(if_fd, I_PUSH, "ip") < 0){ in tap_alloc() 1346 if (ioctl(if_fd, SIOCGLIFFLAGS, &ifr) < 0) in tap_alloc() 1355 if (ioctl (if_fd, SIOCSLIFNAME, &ifr) < 0) in tap_alloc() 1357 if (ioctl(if_fd, SIOCGLIFFLAGS, &ifr) <0) in tap_alloc() 1360 if (ioctl (if_fd, I_PUSH, "arp") < 0) in tap_alloc() 1382 if((ip_muxid = ioctl(ip_fd, I_LINK, if_fd)) < 0){ in tap_alloc() 1390 close (if_fd); in tap_alloc()
|
D | net.c | 1169 int tap_fd, if_fd, ppa = -1; in tap_alloc() local 1212 TFR(if_fd = open("/dev/tap", O_RDWR, 0)); in tap_alloc() 1213 if (if_fd < 0) { in tap_alloc() 1217 if(ioctl(if_fd, I_PUSH, "ip") < 0){ in tap_alloc() 1222 if (ioctl(if_fd, SIOCGLIFFLAGS, &ifr) < 0) in tap_alloc() 1231 if (ioctl (if_fd, SIOCSLIFNAME, &ifr) < 0) in tap_alloc() 1233 if (ioctl(if_fd, SIOCGLIFFLAGS, &ifr) <0) in tap_alloc() 1236 if (ioctl (if_fd, I_PUSH, "arp") < 0) in tap_alloc() 1258 if((ip_muxid = ioctl(ip_fd, I_LINK, if_fd)) < 0){ in tap_alloc() 1266 close (if_fd); in tap_alloc()
|