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