diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-11-17 18:38:30 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-11-19 14:05:49 +0100 |
commit | 5016d1eb84f951d84f5a0c18f994f40677ad0643 (patch) | |
tree | ed2ff67a6208625eeef47770c74397746f701588 /iptables/nft.h | |
parent | 1847d9db753825b0bd1cd450b549f4e39f7bcc31 (diff) |
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 <pablo@netfilter.org>
Diffstat (limited to 'iptables/nft.h')
-rw-r--r-- | iptables/nft.h | 2 |
1 files changed, 1 insertions, 1 deletions
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; |