summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2021-04-29 17:41:25 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2021-05-02 23:30:35 +0200
commitc6896c340231c00ee3f4134dcdf76f018ff20b7e (patch)
tree4caace47eda5697de55e68f23dec7e5c0baa38fc /include
parent5ec5c706d993a68502801433c3bb2bcbb078efff (diff)
evaluate: remove chain from cache on delete chain command
Update the cache to remove this chain from the evaluation phase. Add chain_cache_del() function for this purpose. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r--include/cache.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/cache.h b/include/cache.h
index fddb843b..3823e9a7 100644
--- a/include/cache.h
+++ b/include/cache.h
@@ -62,7 +62,9 @@ struct table;
struct chain;
void chain_cache_add(struct chain *chain, struct table *table);
+void chain_cache_del(struct chain *chain);
struct chain *chain_cache_find(const struct table *table, const char *name);
+
void set_cache_add(struct set *set, struct table *table);
void set_cache_del(struct set *set);
struct set *set_cache_find(const struct table *table, const char *name);