From 1847d9db753825b0bd1cd450b549f4e39f7bcc31 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sat, 17 Nov 2018 18:16:45 +0100 Subject: nft: move chain_cache back to struct nft_handle Place this back into the structure that stores the state information. Signed-off-by: Pablo Neira Ayuso --- iptables/nft.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'iptables/nft.h') diff --git a/iptables/nft.h b/iptables/nft.h index e582a6af..8cacae73 100644 --- a/iptables/nft.h +++ b/iptables/nft.h @@ -26,7 +26,6 @@ struct builtin_table { enum nft_table_type type; struct builtin_chain chains[NF_INET_NUMHOOKS]; bool initialized; - struct nftnl_chain_list *chain_cache; }; struct nft_handle { @@ -40,6 +39,9 @@ struct nft_handle { struct list_head err_list; struct nft_family_ops *ops; struct builtin_table *tables; + struct { + struct nftnl_chain_list *chain_cache; + } table[NFT_TABLE_MAX]; struct nftnl_rule_list *rule_cache; bool restore; int8_t config_done; -- cgit v1.2.3