summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2020-07-08 16:46:14 +0200
committerPhil Sutter <phil@nwl.cc>2020-08-21 19:00:56 +0200
commit79ada320d0cca026f199ae8f39737c1e95991615 (patch)
treed742aefe5f97b627c5f721575f9c290d7a3ebfd5 /extensions
parentb531365ce32f386d91c6a0bbc80ec4076e4babdd (diff)
nft: Extend use of nftnl_chain_list_foreach()
Make use of the callback-based iterator in nft_rule_list(), nft_rule_list_save(), nft_rule_flush() and nft_rule_save(). Callback code for nft_rule_list() and nft_rule_list_save is pretty similar, so introduce and use a common callback function. For nft_rule_save(), turn nft_chain_save_rules() into a callback - it is not used anywhere else, anyway. Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'extensions')
0 files changed, 0 insertions, 0 deletions