summaryrefslogtreecommitdiffstats
path: root/net/socket.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2013-06-04 22:22:15 +0000
committerPablo Neira Ayuso <pablo@netfilter.org>2013-06-05 12:40:28 +0200
commit9cefbbc9c8f9abe0bc514dcfca46e8051ee84050 (patch)
treea2b97a4b79be5ca8a3723f8eb7082732689cee68 /net/socket.c
parent4e7dba99c9e606e304f104ce4071d8b5ba93957e (diff)
downloadop-kernel-dev-9cefbbc9c8f9abe0bc514dcfca46e8051ee84050.zip
op-kernel-dev-9cefbbc9c8f9abe0bc514dcfca46e8051ee84050.tar.gz
netfilter: nfnetlink_queue: cleanup copy_range usage
For every packet queued, we check if configured copy_range is 0, and treat that as 'copy entire packet'. We can move this check to the queue configuration, and can set copy_range appropriately. Also, convert repetitive '0xffff - NLA_HDRLEN' to a macro. [ queue initialization still used 0xffff, although its harmless since the initial setting is overwritten on queue config ] 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
OpenPOWER on IntegriCloud