]> git.ipfire.org Git - thirdparty/nftables.git/commit
src: do not reset generation ID on ruleset flush
authorPablo Neira Ayuso <pablo@netfilter.org>
Thu, 7 Jun 2018 11:35:52 +0000 (13:35 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 7 Jun 2018 11:56:02 +0000 (13:56 +0200)
commit40fb9d6f6bea86b812314b3c879746d957fbb769
tree6b94051f754c30393164f781995dd2c03f9b2312
parent5d22fc81fe27e24dba7a78743318a401353e506b
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>
include/rule.h
src/evaluate.c
src/rule.c