summaryrefslogtreecommitdiffstats
path: root/iptables/nft-chain.h
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2021-09-17 16:51:33 +0200
committerPhil Sutter <phil@nwl.cc>2021-09-27 13:29:45 +0200
commite865a853d7afcff4b2d4279ef843cd13fa6defa1 (patch)
tree33ea6d71d70fa2d8b4b14698682ff4bd25ef5824 /iptables/nft-chain.h
parentf9b33967f2b4b58160c0a970da77d5e44406803a (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.h1
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;
};