summaryrefslogtreecommitdiffstats
path: root/iptables/nft-cache.h
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2020-09-23 19:13:45 +0200
committerPhil Sutter <phil@nwl.cc>2020-12-21 18:33:21 +0100
commit694612adf87fb614f16a2b678f32745d5c9d7876 (patch)
tree60a8e6f33bdd369e45463ba5c11a45a7234ad867 /iptables/nft-cache.h
parent98ed6f6fc6d97663a33de67afff60196052880b1 (diff)
nft: Fix selective chain compatibility checks
Since commit 80251bc2a56ed ("nft: remove cache build calls"), 'chain' parameter passed to nft_chain_list_get() is no longer effective. Before, it was used to fetch only that single chain from kernel when populating the cache. So the returned list of chains for which compatibility checks are done would contain only that single chain. Re-establish the single chain compat checking by introducing a dedicated code path to nft_is_chain_compatible() doing so. Fixes: 80251bc2a56ed ("nft: remove cache build calls") Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'iptables/nft-cache.h')
0 files changed, 0 insertions, 0 deletions