Home | History | Annotate | Download | only in libpcap

Lines Matching refs:if_fd

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;
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) {
199 if (ioctl(if_fd, EIOCFLUSH) == -1) {
207 if (ioctl(if_fd, EIOCSETW, &maxwaiting) == -1) {
215 if (ioctl(if_fd, EIOCLRSTAT, 0) == -1) {
225 if (ioctl(if_fd, EIOCSETF, &filter) == -1) {
234 return(if_fd);