1 .TH NFBPF_COMPILE 8 "" "iptables 1.8.4" "iptables 1.8.4"
4 nfbpf_compile \- generate bytecode for use with xt_bpf
19 .BR EN10MB " | " RAW " | " SLIP " | "
26 utility aids in generating BPF byte code suitable for passing to
35 Link-layer header type to operate on. This is a name as defined in
39 prefix stripped. For use with iptables,
41 should be the right choice (it's also the default if not specified).
45 The BPF expression to compile, see
47 for a description of the language.
50 The program returns 0 on success, 1 otherwise.
53 Match incoming TCP packets with size bigger than 100 bytes:
57 bpf=$(nfbpf_compile 'tcp and greater 100')
59 iptables -A INPUT -m bpf --bytecode "$bpf" -j ACCEPT
65 .BR iptables-extensions (8)
66 lists a few more examples.
69 .BR iptables-extensions (8),