From: Giuseppe Longo Date: Sun, 22 Sep 2013 08:18:56 +0000 (+0200) Subject: xtables: arp: zeroing chain counters X-Git-Tag: v1.6.0~111^2~40 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dbc05560e73d6df7f7013fa892810b9b8329aa1d;p=thirdparty%2Fiptables.git xtables: arp: zeroing chain counters This small patch permit to reset the chain counters. Signed-off-by: Giuseppe Longo Signed-off-by: Pablo Neira Ayuso --- 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);