]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nft_log: fix snaplen does not truncate packets
authorLiping Zhang <liping.zhang@spreadtrum.com>
Mon, 18 Jul 2016 12:44:17 +0000 (20:44 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 21 Jul 2016 00:32:34 +0000 (02:32 +0200)
commit6766638cee32abaac3d7db71b9c671edeb46dab6
tree2dce1401291c22a14a982da0d46f7ce7ad91a8de
parent8d56e0e3db4024cb881bf880cbf06add9149eaa2
netfilter: nft_log: fix snaplen does not truncate packets

There's a similar problem in xt_NFLOG, and was fixed by commit 0225bae195b6
("netfilter: xt_NFLOG: nflog-range does not truncate packets"). Only set
copy_len here does not work, so we should enable NF_LOG_F_COPY_LEN also.

Signed-off-by: Liping Zhang <liping.zhang@spreadtrum.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_log.c