diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-04-01 22:18:29 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-04-03 19:41:02 +0200 |
commit | 3542e49cf539ecfcef6ef7c2d4befb7896ade2cd (patch) | |
tree | c8d5b0064afb1a7d6c95fd98d4db7908af0cfa68 /src/rule.c | |
parent | 751336b7bffea4065bcd9f895eef3159addaba3e (diff) |
cache: rename chain_htable to cache_chain_ht
Rename the hashtable chain that is used for fast cache lookups.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/rule.c')
-rw-r--r-- | src/rule.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1140,10 +1140,10 @@ struct table *table_alloc(void) init_list_head(&table->scope.symbols); table->refcnt = 1; - table->chain_htable = + table->cache_chain_ht = xmalloc(sizeof(struct list_head) * NFT_CACHE_HSIZE); for (i = 0; i < NFT_CACHE_HSIZE; i++) - init_list_head(&table->chain_htable[i]); + init_list_head(&table->cache_chain_ht[i]); return table; } @@ -1171,7 +1171,7 @@ void table_free(struct table *table) obj_free(obj); handle_free(&table->handle); scope_release(&table->scope); - xfree(table->chain_htable); + xfree(table->cache_chain_ht); xfree(table); } |