summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--extensions/libxt_quota.c2
-rw-r--r--extensions/libxt_quota.t7
2 files changed, 3 insertions, 6 deletions
diff --git a/extensions/libxt_quota.c b/extensions/libxt_quota.c
index ff498da7..ff7dd2a3 100644
--- a/extensions/libxt_quota.c
+++ b/extensions/libxt_quota.c
@@ -37,7 +37,7 @@ quota_save(const void *ip, const struct xt_entry_match *match)
const struct xt_quota_info *q = (const void *)match->data;
if (q->flags & XT_QUOTA_INVERT)
- printf("! ");
+ printf(" !");
printf(" --quota %llu", (unsigned long long) q->quota);
}
diff --git a/extensions/libxt_quota.t b/extensions/libxt_quota.t
index 76f0ee95..c5684279 100644
--- a/extensions/libxt_quota.t
+++ b/extensions/libxt_quota.t
@@ -1,10 +1,7 @@
: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 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 18446744073709551615;=;OK
-m quota --quota 18446744073709551616;;FAIL
-m quota;;FAIL