netfilter: nfnetlink_queue: batch verdict support
authorFlorian Westphal <fw@strlen.de>
Tue, 19 Jul 2011 09:46:33 +0000 (11:46 +0200)
committerPatrick McHardy <kaber@trash.net>
Tue, 19 Jul 2011 09:46:33 +0000 (11:46 +0200)
commit97d32cf9440d2111a12471740446d4d63231b79a
tree13b33df5f7a3faf8e765761b823620d234317937
parent5863702a3421b0d2a63a473cf96afeb9fe09070d
netfilter: nfnetlink_queue: batch verdict support

Introduces a new nfnetlink type that applies a given
verdict to all queued packets with an id <= the id in the verdict
message.

If a mark is provided it is applied to all matched packets.

This reduces the number of verdicts that have to be sent.
Applications that make use of this feature need to maintain
a timeout to send a batchverdict periodically to avoid starvation.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Patrick McHardy <kaber@trash.net>
include/linux/netfilter/nfnetlink_queue.h
net/netfilter/nfnetlink_queue.c