summaryrefslogtreecommitdiffstats
path: root/iptables/nft-shared.h
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2018-12-20 16:09:07 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2018-12-27 19:19:07 +0100
commitd4b0d248cc057e39608c7c1c1203dd3f1ea96645 (patch)
treeeb314c412937bce083efd2daefd72d59515f482d /iptables/nft-shared.h
parent9975b6da9f926994bcea8ae788e47aab4b5b235e (diff)
nft: Reduce indenting level in flush_chain_cache()
Instead of doing all in one go, make two separate decisions: 1) If table has no chain cache, either continue or return depending on whether we're flushing for a specific table. 2) With chain cache present, flushing strategy once more depends on whether we're flushing for a specific table: If given, just remove all rules and return. If not, free the cache and set to NULL (so that it will be repopulated later), then continue the loop. Signed-off-by: Phil Sutter <phil@nwl.cc> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables/nft-shared.h')
0 files changed, 0 insertions, 0 deletions