summaryrefslogtreecommitdiffstats
path: root/iptables/nft-shared.h
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2020-05-08 15:40:52 +0200
committerPhil Sutter <phil@nwl.cc>2020-05-18 17:40:41 +0200
commit5906bcf10d0eda9d08c98a618ea7c8ade0018e0c (patch)
treed0192984a9b06b366468869b15f3dbaec0f33322 /iptables/nft-shared.h
parente7b6180fcf9061852a06f6d98e7618f44fd0eeec (diff)
nft: Drop save_counters callback from family_ops
All families use the same callback function, just fold it into the sole place it's called. Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'iptables/nft-shared.h')
-rw-r--r--iptables/nft-shared.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/iptables/nft-shared.h b/iptables/nft-shared.h
index cb60e685..94437ffe 100644
--- a/iptables/nft-shared.h
+++ b/iptables/nft-shared.h
@@ -98,7 +98,6 @@ struct nft_family_ops {
void (*print_rule)(struct nft_handle *h, struct nftnl_rule *r,
unsigned int num, unsigned int format);
void (*save_rule)(const void *data, unsigned int format);
- void (*save_counters)(const void *data);
void (*save_chain)(const struct nftnl_chain *c, const char *policy);
void (*proto_parse)(struct iptables_command_state *cs,
struct xtables_args *args);
@@ -160,7 +159,6 @@ void save_rule_details(const struct iptables_command_state *cs,
unsigned const char *iniface_mask,
const char *outiface,
unsigned const char *outiface_mask);
-void save_counters(const void *data);
void nft_ipv46_save_chain(const struct nftnl_chain *c, const char *policy);
void save_matches_and_target(const struct iptables_command_state *cs,
bool goto_flag, const void *fw,