]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nfnetlink_queue: only add CAP_LEN attr when needed
authorFlorian Westphal <fw@strlen.de>
Tue, 4 Jun 2013 22:22:16 +0000 (22:22 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 5 Jun 2013 10:40:54 +0000 (12:40 +0200)
commit6a65bc73bd94a729c8624ddfa0ca2908bb890c40
treebf8da1c03b04c720afa10f96a210a2df17f980db
parent83fdf5bfc6a229034ac594c624cd6b5075bcc26f
netfilter: nfnetlink_queue: only add CAP_LEN attr when needed

CAP_LEN contains the size of the network packet we're queueing to
userspace, i.e. normally it is the same as the NFQA_PAYLOAD attribute len.

Include it only in the unlikely case when NFQA_PAYLOAD is truncated due
to copy_range limitations.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nfnetlink_queue_core.c