summaryrefslogtreecommitdiffstats
path: root/net/netfilter/nf_tables_api.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso2016-11-28 00:05:52 +0100
committerPablo Neira Ayuso2016-12-07 12:54:22 +0100
commit795595f68d6c787028345804bb06f5a633af24a2 (patch)
tree37a41411dd3ff65cbb8098626ce61870da48098d /net/netfilter/nf_tables_api.c
parentnetfilter: nf_tables: add stateful object reference expression (diff)
downloadkernel-qcow2-linux-795595f68d6c787028345804bb06f5a633af24a2.tar.gz
kernel-qcow2-linux-795595f68d6c787028345804bb06f5a633af24a2.tar.xz
kernel-qcow2-linux-795595f68d6c787028345804bb06f5a633af24a2.zip
netfilter: nft_quota: dump consumed quota
Add a new attribute NFTA_QUOTA_CONSUMED that displays the amount of quota that has been already consumed. This allows us to restore the internal state of the quota object between reboots as well as to monitor how wasted it is. This patch changes the logic to account for the consumed bytes, instead of the bytes that remain to be consumed. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nf_tables_api.c')
0 files changed, 0 insertions, 0 deletions