commit | 795595f68d6c787028345804bb06f5a633af24a2 | [log] [tgz] |
---|---|---|
author | Pablo Neira Ayuso <pablo@netfilter.org> | Mon Nov 28 00:05:52 2016 +0100 |
committer | Pablo Neira Ayuso <pablo@netfilter.org> | Wed Dec 07 12:54:22 2016 +0100 |
tree | 37a41411dd3ff65cbb8098626ce61870da48098d | |
parent | c97d22e68bfedfacb9e752dee536c69916ae0933 [diff] |
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>