diff options
author | Giuseppe Longo <giuseppelng@gmail.com> | 2014-06-11 10:53:12 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-06-11 10:58:00 +0200 |
commit | 1aefddd07ca8e51f0528366835cf466d57bd459f (patch) | |
tree | 37f0c0fd3af991eaf19e2a8987edb7f6c4862ff9 /iptables/nft-shared.h | |
parent | f1299b98d7ff200eb50ca574278bfeb1368de01b (diff) |
nft: save: fix the printing of the counters
This patch prints the counters of a rule before the details,
like iptables-save syntax.
Signed-off-by: Giuseppe Longo <giuseppelng@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables/nft-shared.h')
-rw-r--r-- | iptables/nft-shared.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/iptables/nft-shared.h b/iptables/nft-shared.h index 145f19d1..1c06b5f4 100644 --- a/iptables/nft-shared.h +++ b/iptables/nft-shared.h @@ -50,6 +50,7 @@ struct nft_family_ops { void (*print_firewall)(struct nft_rule *r, unsigned int num, unsigned int format); void (*save_firewall)(const void *data, unsigned int format); + void (*save_counters)(const void *data); void (*proto_parse)(struct iptables_command_state *cs, struct xtables_args *args); void (*post_parse)(int command, struct iptables_command_state *cs, @@ -115,8 +116,8 @@ void save_firewall_details(const struct iptables_command_state *cs, const char *iniface, unsigned const char *iniface_mask, const char *outiface, - unsigned const char *outiface_mask, - unsigned int format); + unsigned const char *outiface_mask); +void save_counters(uint64_t pcnt, uint64_t bcnt); void save_matches_and_target(struct xtables_rule_match *m, struct xtables_target *target, const char *jumpto, |