From e865a853d7afcff4b2d4279ef843cd13fa6defa1 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Fri, 17 Sep 2021 16:51:33 +0200 Subject: 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 --- iptables/nft-chain.h | 1 + 1 file changed, 1 insertion(+) (limited to 'iptables/nft-chain.h') 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; }; -- cgit v1.2.3