]> 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)
commit5406039902fa8529f1c9b3d8550f2c5166b624d0
tree2dce1401291c22a14a982da0d46f7ce7ad91a8de
parent6d20adfad427524717129059610a23c9fa7a3af3
netfilter: nft_log: fix snaplen does not truncate packets

There's a similar problem in xt_NFLOG, and was fixed by commit 53a4a414a0a4
("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