]> git.ipfire.org Git - thirdparty/iptables.git/commit
extensions/libxt_bpf.man: clarify BPF code generation with tcpdump
authorWillem de Bruijn <willemb@google.com>
Wed, 10 Aug 2016 19:23:07 +0000 (15:23 -0400)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 12 Aug 2016 10:46:26 +0000 (12:46 +0200)
commitbd1f88bf85100554d35e74273d907db1fdcd250f
tree6bbf358fd8dba3157872d43a1d0f23a58372a1f4
parenta44bee8c3582cb72868a3b7f703494dd2b24bf7d
extensions/libxt_bpf.man: clarify BPF code generation with tcpdump

The xt_bpf module applies BPF bytecode to the packet. Depending on
where the module is invoked, the kernel may pass a packet with or
without link layer header. Iptables has no such header.

A common `tcpdump -ddd <string>` compilation command may revert to
a physical device that generates code for packets starting from the
mac layer up (e.g., E10MB data link type: Ethernet).

Clarify in the man page that when using this tool for code generation,
a suitable target device must be chosen.

Netfilter Bugzilla Bug #1048

Reported-by: Lorenzo Pistone <blaffablaffa@gmail.com>
Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
extensions/libxt_bpf.man