summaryrefslogtreecommitdiffstats
path: root/include/statement.h
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2016-11-27 23:24:21 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2017-01-03 14:21:52 +0100
commitd156fd17ee7ff9a2822d7714e1c8dfe7b6b18f55 (patch)
tree7f14b719a9459ee21dd75469f94b02e62577a2ea /include/statement.h
parentda3f503dc3609a66d84782aa200c1aafaecdc1f7 (diff)
src: add used quota support
table ip x { chain y { type filter hook forward priority 0; policy accept; quota over 200 mbytes used 1143 kbytes drop } } This patch allows us to list and to restore used quota. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/statement.h')
-rw-r--r--include/statement.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/statement.h b/include/statement.h
index 277ff2f4..d317ae36 100644
--- a/include/statement.h
+++ b/include/statement.h
@@ -108,6 +108,7 @@ extern struct stmt *queue_stmt_alloc(const struct location *loc);
struct quota_stmt {
uint64_t bytes;
+ uint64_t used;
uint32_t flags;
};