]> asedeno.scripts.mit.edu Git - linux.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)
commitcc37c1ad42ba6bc07c3d7a999f898e11d69a2580
tree2dce1401291c22a14a982da0d46f7ce7ad91a8de
parent1bc4e0136cb32282d7968e11cfabc40763fdb03c
netfilter: nft_log: fix snaplen does not truncate packets

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