how to write a bpf filter to receive all packets?

snnn snnn119 at gmail.com
Wed May 3 14:50:43 UTC 2006


is that?

 struct bpf_insn insns[] = {
     BPF_STMT(BPF_RET+BPF_K, (u_int)-1),
 };

but I can not receive any packet.


More information about the freebsd-questions mailing list