diff options
author | Phil Sutter <phil@nwl.cc> | 2021-09-17 16:51:33 +0200 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2021-09-27 13:29:45 +0200 |
commit | e865a853d7afcff4b2d4279ef843cd13fa6defa1 (patch) | |
tree | 33ea6d71d70fa2d8b4b14698682ff4bd25ef5824 /iptables/nft-chain.h | |
parent | f9b33967f2b4b58160c0a970da77d5e44406803a (diff) |
nft-chain: Introduce base_slot field
For builtin chains, record the base_chains array slot they are assigned
to. This simplifies removing that reference if they are being deleted
later.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'iptables/nft-chain.h')
-rw-r--r-- | iptables/nft-chain.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/iptables/nft-chain.h b/iptables/nft-chain.h index 137f4b7f..9adf1738 100644 --- a/iptables/nft-chain.h +++ b/iptables/nft-chain.h @@ -9,6 +9,7 @@ struct nft_handle; struct nft_chain { struct list_head head; struct hlist_node hnode; + struct nft_chain **base_slot; struct nftnl_chain *nftnl; }; |