]> git.ipfire.org Git - thirdparty/iptables.git/commit
xtables: Optimize user-defined chain deletion
authorPhil Sutter <phil@nwl.cc>
Thu, 20 Dec 2018 15:09:17 +0000 (16:09 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 27 Dec 2018 19:45:18 +0000 (20:45 +0100)
commit0b950ed4549308ef23ffc7561567df86c90cfed9
treed53ac8bcceff6e5c141f102dd2db4fcd895a674a
parente80f7fe56e4c64e05da426418bc2fae7ca221c49
xtables: Optimize user-defined chain deletion

Make use of nftnl_chain_list_lookup_byname() if a chain name was given.
Move the actual chain deleting code into a callback suitable for passing
to nftnl_chain_list_foreach().

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
iptables/nft.c