Lines Matching refs:bpf
22 * 1999/10/02 mr Port to bpf/OpenBSD; starvation fixed; efficiency fixes
70 #include <net/bpf.h>
551 char bpf[16];
584 /* hunt for an open bpf */
586 sprintf(bpf,"/dev/bpf%d",i);
587 if ((fd = open(bpf, O_RDWR)) >= 0)
591 perror("pppoe: open(bpf)");
598 perror("pppoe: bpf(BIOCGBLEN)");
606 perror("pppoe: bpf(BIOCSETIF)");
613 perror("pppoe: bpf(BIOCIMMEDIATE)");
617 perror("pppoe: bpf(BIOCGDLT)");
724 perror("pppoe: bpf(BIOCSETF)");
1316 return 0; /* timeout on bpf - try again */
1345 /* is this socket tied to bpf? */
1346 /* quick hack() - try a trivial bpf ioctl */