]> git.ipfire.org Git - thirdparty/iptables.git/commit
nft: Turn nft_chain_save() into a foreach-callback
authorPhil Sutter <phil@nwl.cc>
Wed, 8 Jul 2020 13:18:48 +0000 (15:18 +0200)
committerPhil Sutter <phil@nwl.cc>
Fri, 24 Jul 2020 17:16:09 +0000 (19:16 +0200)
commitdb3a63237fe21de8a75eaaddf0cc577ce30a68fe
tree95a3f9cce07890784feaf4b7a5892a860679f5f8
parent7a700c47fe121c65c550ab24de3284abbb1e82f8
nft: Turn nft_chain_save() into a foreach-callback

Let nftnl_chain_list_foreach() do the chain list iterating instead of
open-coding it. While being at it, simplify the policy value selection
code as well.

Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/nft.c
iptables/nft.h
iptables/xtables-save.c