diff options
author | Giuseppe Longo <giuseppelng@gmail.com> | 2013-09-22 10:18:56 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-12-30 23:50:49 +0100 |
commit | dbc05560e73d6df7f7013fa892810b9b8329aa1d (patch) | |
tree | ff7fae466ba52b3f3e9176f37d21e483445bb0e7 /iptables | |
parent | 2a55b8114a23c36e003c0b5bc384497bc2285369 (diff) |
xtables: arp: zeroing chain counters
This small patch permit to reset the chain counters.
Signed-off-by: Giuseppe Longo <giuseppelng@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables')
-rw-r--r-- | iptables/xtables-arp.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/iptables/xtables-arp.c b/iptables/xtables-arp.c index 4537a58c..407fb066 100644 --- a/iptables/xtables-arp.c +++ b/iptables/xtables-arp.c @@ -1462,9 +1462,8 @@ int do_commandarp(struct nft_handle *h, int argc, char *argv[], char **table) options&OPT_NUMERIC, /*options&OPT_EXPANDED*/0, options&OPT_LINENUMBERS); - /*if (ret) - ret = zero_entries(chain, - options&OPT_VERBOSE, handle);*/ + if (ret) + ret = nft_chain_zero_counters(h, chain, *table); break; case CMD_NEW_CHAIN: ret = nft_chain_user_add(h, chain, *table); |