diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-04-29 17:41:25 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-05-02 23:30:35 +0200 |
commit | c6896c340231c00ee3f4134dcdf76f018ff20b7e (patch) | |
tree | 4caace47eda5697de55e68f23dec7e5c0baa38fc /include | |
parent | 5ec5c706d993a68502801433c3bb2bcbb078efff (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.h | 2 |
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); |