]> git.ipfire.org Git - thirdparty/nftables.git/commit
libnftables: Introduce nft_ctx_flush_cache()
authorPhil Sutter <phil@nwl.cc>
Mon, 23 Oct 2017 15:33:17 +0000 (17:33 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 24 Oct 2017 13:23:55 +0000 (15:23 +0200)
commit2a3f699d99898c50c51987f8fb64cd5b11ad0dd6
tree63a383caa67527ec57f52009e73d3048b9048cf1
parent49900d448ac95ecabd038a9936d467d6e37aacec
libnftables: Introduce nft_ctx_flush_cache()

This allows an application to explicitly flush caches associated with a
given nft context, as seen in cli_complete().

Note that this is a bit inconsistent in that it releases the global
interface cache, but nft_ctx_free() does the same so at least it's not a
regression.

Note that there is no need for explicit cache update routine since cache
is populated during command execution depending on whether it is needed
or not.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/nftables/nftables.h
src/cli.c
src/libnftables.c