]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
libxt_quota: print negation when it has been selected
authorJan Engelhardt <jengelh@medozas.de>
Tue, 18 Jan 2011 10:02:04 +0000 (11:02 +0100)
committerJan Engelhardt <jengelh@medozas.de>
Tue, 18 Jan 2011 10:02:04 +0000 (11:02 +0100)
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
extensions/libxt_quota.c

index 64100cdc61ff456cac45582ae6e7483ec50f1434..75da2d6d766e1ecfd530b1e2e842c55218b10420 100644 (file)
@@ -34,6 +34,9 @@ static void
 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("--quota %llu ", (unsigned long long) q->quota);
 }