summaryrefslogtreecommitdiffstats
path: root/iptables/nft.h
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2020-07-23 14:15:53 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2020-07-27 16:01:58 +0200
commitcf3e9100eedce518e42dfb6933c7871d041a7d18 (patch)
treeea3ecb2e72d0079576a927f2f88b157b569288f4 /iptables/nft.h
parent67bef1540ebdbd64f7d9dc65b76505d161536759 (diff)
iptables: replace libnftnl table list by linux list
This patch removes the libnftnl table list by linux list. This comes with an extra memory allocation to store the nft_table object. Probably, there is no need to cache the entire nftnl_table in the near future. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables/nft.h')
-rw-r--r--iptables/nft.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/nft.h b/iptables/nft.h
index 247255ac..b2175958 100644
--- a/iptables/nft.h
+++ b/iptables/nft.h
@@ -38,7 +38,7 @@ enum nft_cache_level {
};
struct nft_cache {
- struct nftnl_table_list *tables;
+ struct list_head tables;
struct {
struct nftnl_chain_list *chains;
struct nftnl_set_list *sets;