src: add NFQNL_MSG_VERDICT_BATCH support
authorFlorian Westphal <fw@strlen.de>
Tue, 6 Sep 2011 11:47:43 +0000 (13:47 +0200)
committerr.kubiak <r.kubiak@samsung.com>
Mon, 16 Nov 2015 13:12:06 +0000 (14:12 +0100)
commit2c190631fe9051b6a66a048b1422facc8c82130f
treed6a7150a34f8e1c9535f6f9accd62f4a05742bad
parentd087581ab9e58490b99be38e0000cc91cfcdce65
src: add NFQNL_MSG_VERDICT_BATCH support

add nfq_set_verdict_batch() and nfq_set_verdict_batch2 (to also
set the nfmark of all packets).

verdicts sent by the _batch variant will affect all queued skbs
whose id is smaller or equal to the given id.

This facility is available from Linux 3.1 onwards.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@gnumonks.org>
include/libnetfilter_queue/libnetfilter_queue.h
include/libnetfilter_queue/linux_nfnetlink_queue.h
src/libnetfilter_queue.c