diff options
author | Florian Westphal <fw@strlen.de> | 2013-06-05 00:22:16 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-06-05 12:40:54 +0200 |
commit | 7f87712c0152511a1842698ad8dca425fee2dc4f (patch) | |
tree | bf8da1c03b04c720afa10f96a210a2df17f980db /net/socket.c | |
parent | netfilter: nfnetlink_queue: cleanup copy_range usage (diff) | |
download | linux-7f87712c0152511a1842698ad8dca425fee2dc4f.tar.xz linux-7f87712c0152511a1842698ad8dca425fee2dc4f.zip |
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>
Diffstat (limited to 'net/socket.c')
0 files changed, 0 insertions, 0 deletions