From 5016d1eb84f951d84f5a0c18f994f40677ad0643 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sat, 17 Nov 2018 18:38:30 +0100 Subject: nft: move initialize to struct nft_handle Move this to the structure that stores, stateful information. Introduce nft_table_initialized() and use it. Signed-off-by: Pablo Neira Ayuso --- iptables/nft.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'iptables/nft.h') diff --git a/iptables/nft.h b/iptables/nft.h index 8cacae73..9fe83ad1 100644 --- a/iptables/nft.h +++ b/iptables/nft.h @@ -25,7 +25,6 @@ struct builtin_table { const char *name; enum nft_table_type type; struct builtin_chain chains[NF_INET_NUMHOOKS]; - bool initialized; }; struct nft_handle { @@ -41,6 +40,7 @@ struct nft_handle { struct builtin_table *tables; struct { struct nftnl_chain_list *chain_cache; + bool initialized; } table[NFT_TABLE_MAX]; struct nftnl_rule_list *rule_cache; bool restore; -- cgit v1.2.3