summaryrefslogtreecommitdiffstats
path: root/extensions/libxt_NFQUEUE.t
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2014-10-01 10:44:49 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2014-10-01 10:44:58 +0200
commita9084baa5d0ff6ccd28715b79ad2630bc77be49b (patch)
tree5f53bda6e82184773150e29339a425578c4db644 /extensions/libxt_NFQUEUE.t
parentcbe036db892c298c33e77dec2c5129dbb4dccc2c (diff)
parent4b187eeed49dc507d38438affabe90d36847412d (diff)
Merge branch 'tests'
This merges the iptables-test.py script and the corresponding test files.
Diffstat (limited to 'extensions/libxt_NFQUEUE.t')
-rw-r--r--extensions/libxt_NFQUEUE.t12
1 files changed, 12 insertions, 0 deletions
diff --git a/extensions/libxt_NFQUEUE.t b/extensions/libxt_NFQUEUE.t
new file mode 100644
index 00000000..d4e4274b
--- /dev/null
+++ b/extensions/libxt_NFQUEUE.t
@@ -0,0 +1,12 @@
+:INPUT,FORWARD,OUTPUT
+-j NFQUEUE;=;OK
+-j NFQUEUE --queue-num 0;=;OK
+-j NFQUEUE --queue-num 65535;=;OK
+-j NFQUEUE --queue-num 65536;;FAIL
+-j NFQUEUE --queue-num -1;;FAIL
+# it says "NFQUEUE: number of total queues is 0", overflow in NFQUEUE_parse_v1?
+# ERROR: cannot load: iptables -A INPUT -j NFQUEUE --queue-balance 0:65535
+# -j NFQUEUE --queue-balance 0:65535;=;OK
+-j NFQUEUE --queue-balance 0:65536;;FAIL
+-j NFQUEUE --queue-balance -1:65535;;FAIL
+-j NFQUEUE --queue-num 10 --queue-bypass;=;OK