]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
libxt_NFQUEUE: fix --queue-bypass ipt-save output
authorFlorian Westphal <fw@strlen.de>
Mon, 31 Oct 2011 15:10:57 +0000 (16:10 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 1 Nov 2011 12:37:13 +0000 (13:37 +0100)
else, this will print "--queue-num 0--queue-bypass ".

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
extensions/libxt_NFQUEUE.c
tests/options-most.rules

index e47b586c8175900033c50dd7601be6da120c3b7f..8c2f69998005c76ec58980bdd81d8bc52cb48879 100644 (file)
@@ -152,7 +152,7 @@ static void NFQUEUE_save_v2(const void *ip, const struct xt_entry_target *target
        NFQUEUE_save_v1(ip, target);
 
        if (info->bypass)
-               printf("--queue-bypass ");
+               printf(" --queue-bypass");
 }
 
 static void NFQUEUE_init_v1(struct xt_entry_target *t)
index ae28b82d8069e544edda8b4ebce0b574d40e5e06..757336152cca2eafac8a71bdcd8f34ef8e0ab9bf 100644 (file)
 -A ntarg
 -A ntarg -j NFQUEUE --queue-balance 8:99
 -A ntarg
+-A ntarg -j NFQUEUE --queue-num 0 --queue-bypass
+-A ntarg
 -A ntarg -j RATEEST --rateest-name RE1 --rateest-interval 250.0ms --rateest-ewmalog 500.0ms
 -A ntarg
 -A ntarg -j RATEEST --rateest-name RE2 --rateest-interval 250.0ms --rateest-ewmalog 500.0ms