]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
xtables: arp: zeroing chain counters
authorGiuseppe Longo <giuseppelng@gmail.com>
Sun, 22 Sep 2013 08:18:56 +0000 (10:18 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 30 Dec 2013 22:50:49 +0000 (23:50 +0100)
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>
iptables/xtables-arp.c

index 4537a58c6bdc69ce0a1083308cb66cbea83ee59b..407fb066d9e71734eba278d84ed7d9d2be5a1ced 100644 (file)
@@ -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);