]> git.ipfire.org Git - thirdparty/nftables.git/commit
src: cache gets out of sync in interactive mode
authorPablo Neira Ayuso <pablo@netfilter.org>
Thu, 6 Aug 2020 10:52:00 +0000 (12:52 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 6 Aug 2020 11:05:13 +0000 (13:05 +0200)
commit407c54f712554d1055c43e8a7d731a765564c16b
tree124c53d61b4e004c69539144389c8279fd560631
parent455709effa095c6e986385974a0cf702dad8491c
src: cache gets out of sync in interactive mode

Since 94a945ffa81b ("libnftables: Get rid of explicit cache flushes"),
the cache logic checks for the generation number to refresh the cache.

This breaks interactive mode when listing stateful objects though. This
patch adds a new flag to force a cache refresh when the user requests a
ruleset listing.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/cache.h
src/cache.c
src/rule.c