cvs commit: src/sys/net bpf.c

Peter Jeremy PeterJeremy at
Tue Jun 7 09:24:18 GMT 2005

On Mon, 2005-Jun-06 22:19:59 +0000, Christian S.J. Peron wrote:
>  Change the maximum bpf program instruction limitation from being hard-
>  coded at 512 (BPF_MAXINSNS) to being tunable. This is useful for users
>  who wish to use complex or large bpf programs when filtering traffic.
>  For now we will default it to BPF_MAXINSNS. I have tested bpf programs
>  with well over 21,000 instructions without any problems.

If people are using really large BPF programs, is there a benefit in
moving from bytecode to machine code?
Peter Jeremy

More information about the cvs-src mailing list