From 4282d89a798adcf50973a22c5a17563b5e9421cb Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Thu, 20 Aug 2009 16:39:05 +0200 Subject: libxt_NFQUEUE: add new v1 version with queue-balance option New version that adds support for specifying a queue range instead of a single queue id. The kernel will distribute flows across the given queue range. This is useful for multicore systems, simply start multiple instances of the userspace program on queues x, x+1, .. x+n and use "--queue-balance x:x+n". Packets belonging to the same connection are put into the same queue. With fixes from Jan Engelhardt. Signed-off-by: Florian Westphal Signed-off-by: Patrick McHardy --- include/linux/netfilter/xt_NFQUEUE.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/linux') diff --git a/include/linux/netfilter/xt_NFQUEUE.h b/include/linux/netfilter/xt_NFQUEUE.h index 9a9af79f..ab6d62bd 100644 --- a/include/linux/netfilter/xt_NFQUEUE.h +++ b/include/linux/netfilter/xt_NFQUEUE.h @@ -13,4 +13,9 @@ struct xt_NFQ_info { u_int16_t queuenum; }; +struct xt_NFQ_info_v1 { + u_int16_t queuenum; + u_int16_t queues_total; +}; + #endif /* _XT_NFQ_TARGET_H */ -- cgit v1.2.3