]> git.ipfire.org Git - thirdparty/nftables.git/commit
rule: Introduce helper function cache_flush
authorAnatole Denis <anatole@rezel.net>
Thu, 1 Dec 2016 10:50:16 +0000 (11:50 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 1 Dec 2016 11:30:56 +0000 (12:30 +0100)
commit7988e426eb7b12d1f266ff47e6704541585f3b46
tree0a88ec034c9ffbdcdd99b7104b41eb6eda5d8a58
parent3b7a8a102c076eb015cf779613b06458d3d420b8
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>
include/rule.h
src/rule.c