Searched defs:if_fd (Results 1 - 3 of 3) sorted by relevance

/external/libpcap/
H A Dpcap-enet.c52 readloop(int cnt, int if_fd, struct bpf_program *fp, printfunc printit) argument
70 if ((cc = read(if_fd, (char *)buf.p, sizeof(buf))) < 0)
71 efReadError(if_fd, "reader");
104 wrapup(if_fd);
157 int if_fd; local
160 GETENETDEVICE(0, O_RDONLY, &if_fd);
162 if_fd = open("/dev/enet", O_RDONLY, 0);
165 if (if_fd == -1) {
174 if (ioctl(if_fd, EIOCGETP, (char *)&ctl) == -1) {
190 if (ioctl(if_fd, EIOCSET
[all...]
/external/qemu/
H A Dnet-android.c1297 int tap_fd, if_fd, ppa = -1; local
1340 TFR(if_fd = open("/dev/tap", O_RDWR, 0));
1341 if (if_fd < 0) {
1345 if(ioctl(if_fd, I_PUSH, "ip") < 0){
1350 if (ioctl(if_fd, SIOCGLIFFLAGS, &ifr) < 0)
1359 if (ioctl (if_fd, SIOCSLIFNAME, &ifr) < 0)
1361 if (ioctl(if_fd, SIOCGLIFFLAGS, &ifr) <0)
1363 /* Push arp module to if_fd */
1364 if (ioctl (if_fd, I_PUSH, "arp") < 0)
1386 if((ip_muxid = ioctl(ip_fd, I_LINK, if_fd)) <
[all...]
H A Dnet.c1169 int tap_fd, if_fd, ppa = -1; local
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)) <
[all...]

Completed in 103 milliseconds