summaryrefslogtreecommitdiffstats
path: root/include/rule.h
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2018-06-07 13:35:52 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2018-06-07 13:56:02 +0200
commit40fb9d6f6bea86b812314b3c879746d957fbb769 (patch)
tree6b94051f754c30393164f781995dd2c03f9b2312 /include/rule.h
parent5d22fc81fe27e24dba7a78743318a401353e506b (diff)
src: do not reset generation ID on ruleset flush
If 'flush ruleset' command is done, release the cache but still keep the generation ID around. Hence, follow up calls to cache_update() will assume that cache is updated and will not perform a netlink dump. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/rule.h')
-rw-r--r--include/rule.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/rule.h b/include/rule.h
index cfecf7ff..909ff36d 100644
--- a/include/rule.h
+++ b/include/rule.h
@@ -580,7 +580,9 @@ extern int do_command(struct netlink_ctx *ctx, struct cmd *cmd);
extern int cache_update(struct mnl_socket *nf_sock, struct nft_cache *cache,
enum cmd_ops cmd, struct list_head *msgs, unsigned int debug_flag,
struct output_ctx *octx);
-extern void cache_flush(struct list_head *table_list);
+extern void cache_flush(struct mnl_socket *nf_sock, struct nft_cache *cache,
+ enum cmd_ops cmd, struct list_head *msgs,
+ unsigned int debug_mask, struct output_ctx *octx);
extern void cache_release(struct nft_cache *cache);
enum udata_type {