summaryrefslogtreecommitdiffstats
path: root/extensions/libxt_quota.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_quota.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_quota.t')
-rw-r--r--extensions/libxt_quota.t10
1 files changed, 10 insertions, 0 deletions
diff --git a/extensions/libxt_quota.t b/extensions/libxt_quota.t
new file mode 100644
index 00000000..76f0ee95
--- /dev/null
+++ b/extensions/libxt_quota.t
@@ -0,0 +1,10 @@
+:INPUT,FORWARD,OUTPUT
+-m quota --quota 0;=;OK
+# iptables-save shows wrong output
+# ERROR: cannot find: iptables -I INPUT -m quota ! --quota 0)
+#-m quota ! --quota 0;=;OK
+-m quota --quota 18446744073709551615;=;OK
+# ERROR: cannot find: iptables -I INPUT -m quota ! --quota 18446744073709551615
+#-m quota ! --quota 18446744073709551615;=;OK
+-m quota --quota 18446744073709551616;;FAIL
+-m quota;;FAIL