HomeSort by relevance Sort by last modified time
    Searched refs:if_fd (Results 1 - 3 of 3) sorted by null

  /external/libpcap/
pcap-enet.c 52 readloop(int cnt, int if_fd, struct bpf_program *fp, printfunc printit)
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, EIOCSETP, &ctl) == -1)
    [all...]
  /external/qemu/
net-android.c 1297 int tap_fd, if_fd, ppa = -1; local
1340 TFR(if_fd = open("/dev/tap", O_RDWR, 0));
1341 if (if_fd < 0)
    [all...]
net.c 1169 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)) < 0)
    [all...]

Completed in 79 milliseconds