summaryrefslogtreecommitdiffstats
path: root/src/cache.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2021-04-29 18:07:34 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2021-05-02 23:30:35 +0200
commite73ada02020c92212666cda9408655356454a3c3 (patch)
treed73ad7f39bc92b7ad6874aa5d430a37e888558c1 /src/cache.c
parent745e51d0b8f0512156bccc345e69ccb48338faf6 (diff)
evaluate: remove flowtable from cache on delete flowtable command
Update the cache to remove this flowtable from the evaluation phase. Add flowtable_cache_del() function for this purpose. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/cache.c')
-rw-r--r--src/cache.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cache.c b/src/cache.c
index a98ee595..f59bba03 100644
--- a/src/cache.c
+++ b/src/cache.c
@@ -527,6 +527,11 @@ void ft_cache_add(struct flowtable *ft, struct table *table)
cache_add(&ft->cache, &table->ft_cache, hash);
}
+void ft_cache_del(struct flowtable *ft)
+{
+ cache_del(&ft->cache);
+}
+
struct flowtable *ft_cache_find(const struct table *table, const char *name)
{
struct flowtable *ft;