diff options
author | Phil Sutter <phil@nwl.cc> | 2020-07-07 11:43:26 +0200 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2020-12-21 18:33:21 +0100 |
commit | 176c92c26bfc9b4a36b99c58b66e117fbe5ae706 (patch) | |
tree | 63a08f3f5c830959f7a71aa9e1e5af7b41671294 /iptables/nft.h | |
parent | 87cce1cc4e1edfa03e56a2f9c72ee3cb3485f52b (diff) |
nft: Introduce a dedicated base chain array
Preparing for sorted chain output, introduce a per-table array holding
base chains indexed by nf_inet_hooks value. Since the latter is ordered
correctly, iterating over the array will return base chains in expected
order.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'iptables/nft.h')
-rw-r--r-- | iptables/nft.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/iptables/nft.h b/iptables/nft.h index ac227b4c..1a2506ee 100644 --- a/iptables/nft.h +++ b/iptables/nft.h @@ -40,6 +40,7 @@ enum nft_cache_level { struct nft_cache { struct { + struct nft_chain *base_chains[NF_INET_NUMHOOKS]; struct nft_chain_list *chains; struct nftnl_set_list *sets; bool exists; |