Searched refs:if_fd (Results 1 - 2 of 2) sorted by relevance

/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/libpcap-1.4.0/
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...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/openvpn-2.3.1/src/openvpn/
H A Dtun.c1672 int if_fd, ip_muxid, arp_muxid, arp_fd, ppa = -1; local
1765 if ((if_fd = open (dev_node, O_RDWR, 0)) < 0)
1768 if (ioctl (if_fd, I_PUSH, "ip") < 0)
1774 if (ioctl (if_fd, IF_UNITSEL, (char *) &ppa) < 0)
1785 if (ioctl(if_fd, SIOCGLIFFLAGS, &ifr) < 0)
1790 if (ioctl (if_fd, SIOCSLIFNAME, &ifr) < 0)
1792 if (ioctl(if_fd, SIOCGLIFFLAGS, &ifr) <0)
1794 /* Push arp module to if_fd */
1795 if (ioctl (if_fd, I_PUSH, "arp") < 0)
1825 if ((ip_muxid = ioctl (tt->ip_fd, link_type, if_fd)) <
[all...]

Completed in 95 milliseconds