Home
last modified time | relevance | path

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

/external/libpcap/
Dpcap-enet.c52 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 …]