]> git.ipfire.org Git - thirdparty/nftables.git/commit
cache: do not populate the cache in case of flush ruleset command
authorPablo Neira Ayuso <pablo@netfilter.org>
Fri, 14 Jun 2019 12:16:59 +0000 (14:16 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 14 Jun 2019 12:35:16 +0000 (14:35 +0200)
commitdc5372b6e8448549a770f9d09477fd2a9207d69c
treef10fff1748da9c53f42c0fed5c707740770d99c0
parentef5c498bd166b5284fdf80d95b03daaa7e05556a
cache: do not populate the cache in case of flush ruleset command

__CMD_FLUSH_RULESET is a dummy definition that used to skip the netlink
dump to populate the cache. This patch is a workaround until we have a
better infrastructure to track the state of the cache objects.

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