diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-04-29 18:07:34 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-05-02 23:30:35 +0200 |
commit | e73ada02020c92212666cda9408655356454a3c3 (patch) | |
tree | d73ad7f39bc92b7ad6874aa5d430a37e888558c1 /src/cache.c | |
parent | 745e51d0b8f0512156bccc345e69ccb48338faf6 (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.c | 5 |
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; |