summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2011-10-31 16:10:57 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2011-11-01 13:37:13 +0100
commit3c461ceeed5f55599930051f6feaec014b08f730 (patch)
tree007817c2f642abfa7840c80d386313fa27c46223
parente5152bf4ebd4f573ae1d0770044e2bff7ab66d5e (diff)
libxt_NFQUEUE: fix --queue-bypass ipt-save output
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>
-rw-r--r--extensions/libxt_NFQUEUE.c2
-rw-r--r--tests/options-most.rules2
2 files changed, 3 insertions, 1 deletions
diff --git a/extensions/libxt_NFQUEUE.c b/extensions/libxt_NFQUEUE.c
index e47b586c..8c2f6999 100644
--- a/extensions/libxt_NFQUEUE.c
+++ b/extensions/libxt_NFQUEUE.c
@@ -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)
diff --git a/tests/options-most.rules b/tests/options-most.rules
index ae28b82d..75733615 100644
--- a/tests/options-most.rules
+++ b/tests/options-most.rules
@@ -178,6 +178,8 @@
-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