]> git.ipfire.org Git - thirdparty/nftables.git/commit
cache: add hashtable cache for table
authorPablo Neira Ayuso <pablo@netfilter.org>
Thu, 29 Apr 2021 20:23:05 +0000 (22:23 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sun, 2 May 2021 21:30:35 +0000 (23:30 +0200)
commit5ec5c706d993a68502801433c3bb2bcbb078efff
treeb8ee369020eade4690b1ebc78144737ba4864dee
parent29b332e906eea98b4e1299c0da931874ef8e08db
cache: add hashtable cache for table

Add a hashtable for fast table lookups.

Tables that reside in the cache use the table->cache_hlist and
table->cache_list heads.

Table that are created from command line / ruleset are also added
to the cache.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/cache.h
include/rule.h
src/cache.c
src/evaluate.c
src/json.c
src/libnftables.c
src/monitor.c
src/netlink.c
src/netlink_delinearize.c
src/rule.c