summaryrefslogtreecommitdiffstats
path: root/iptables/nft-shared.c
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.c
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.c')
-rw-r--r--iptables/nft-shared.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/iptables/nft-shared.c b/iptables/nft-shared.c
index 53cd4cae..c5a8f3fc 100644
--- a/iptables/nft-shared.c
+++ b/iptables/nft-shared.c
@@ -831,14 +831,6 @@ void save_rule_details(const struct iptables_command_state *cs,
}
}
-void save_counters(const void *data)
-{
- const struct iptables_command_state *cs = data;
-
- printf("[%llu:%llu] ", (unsigned long long)cs->counters.pcnt,
- (unsigned long long)cs->counters.bcnt);
-}
-
void nft_ipv46_save_chain(const struct nftnl_chain *c, const char *policy)
{
const char *chain = nftnl_chain_get_str(c, NFTNL_CHAIN_NAME);