summaryrefslogtreecommitdiffstats
path: root/iptables/tests/shell
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2018-12-20 16:09:15 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2018-12-27 20:42:10 +0100
commita6ce0c65d3a390bfff16e834c18650beedecf40c (patch)
tree798dec1955c82cb16030626bb87f297bcae5fc43 /iptables/tests/shell
parent196841c9597eff536b59655b60df088ee1929904 (diff)
xtables: Optimize nft_chain_zero_counters()
If a chain name was given, make use of nftnl_chain_list_lookup_byname(). Streamline nft_chain_zero_rule_counters() to be suitable for calling from nftnl_chain_list_foreach(). There is an unrelated optimization in here, too: Add batch job NFT_COMPAT_CHAIN_ZERO only if it is a base chain. Since user-defined chains don't have counters, there is no need to do anything for them. Signed-off-by: Phil Sutter <phil@nwl.cc> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables/tests/shell')
0 files changed, 0 insertions, 0 deletions