summaryrefslogtreecommitdiffstats
path: root/include/rule.h
diff options
context:
space:
mode:
authorAnatole Denis <anatole@rezel.net>2016-12-01 11:50:16 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2016-12-01 12:30:56 +0100
commit7988e426eb7b12d1f266ff47e6704541585f3b46 (patch)
tree0a88ec034c9ffbdcdd99b7104b41eb6eda5d8a58 /include/rule.h
parent3b7a8a102c076eb015cf779613b06458d3d420b8 (diff)
rule: Introduce helper function cache_flush
cache_release empties the cache, and marks it as uninitialized. Add cache_flush, which does the same, except it keeps the cache initialized, eg. after a "nft flush ruleset" when empty is the correct state of the cache. Signed-off-by: Anatole Denis <anatole@rezel.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/rule.h')
-rw-r--r--include/rule.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/rule.h b/include/rule.h
index 99e92ee8..b9b4a19c 100644
--- a/include/rule.h
+++ b/include/rule.h
@@ -422,6 +422,7 @@ struct netlink_ctx;
extern int do_command(struct netlink_ctx *ctx, struct cmd *cmd);
extern int cache_update(enum cmd_ops cmd, struct list_head *msgs);
+extern void cache_flush(void);
extern void cache_release(void);
enum udata_type {