diff options
author | Florian Westphal <fw@strlen.de> | 2013-06-04 22:22:15 +0000 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-06-05 12:40:28 +0200 |
commit | 9cefbbc9c8f9abe0bc514dcfca46e8051ee84050 (patch) | |
tree | a2b97a4b79be5ca8a3723f8eb7082732689cee68 /kernel/printk.c | |
parent | 4e7dba99c9e606e304f104ce4071d8b5ba93957e (diff) | |
download | op-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 'kernel/printk.c')
0 files changed, 0 insertions, 0 deletions