]> git.ipfire.org Git - thirdparty/iptables.git/commit
xtables: allow to reset the counters of an existing rule
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Mon, 19 Aug 2013 12:04:06 +0000 (15:04 +0300)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 30 Dec 2013 22:50:44 +0000 (23:50 +0100)
commita69cc575295eedb44f0fa33cd5fcf1cc0114133a
tree6c1bf6494850d19618fffce658b956dfe49d79f6
parent36cba824e1689c6255d4e33b7fa82541a774609b
xtables: allow to reset the counters of an existing rule

Now that we convert nft rules to native xt command structure, it's
easier to reset the counters by replacing the existing rule by a
new one with all counters set to zero.

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
iptables/nft.c
iptables/nft.h
iptables/xtables.c