From 64c74ba5795bbdd8c8080380bc1e66dec55cde65 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 18 Jul 2022 15:56:00 +0200 Subject: cache: prepare nft_cache_evaluate() to return error Move flags as parameter reference and add list of error messages to prepare for sanity checks. Signed-off-by: Pablo Neira Ayuso --- include/cache.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/cache.h b/include/cache.h index b6c7d48b..575381ef 100644 --- a/include/cache.h +++ b/include/cache.h @@ -65,8 +65,9 @@ struct nft_cache_filter { struct nft_cache; enum cmd_ops; -unsigned int nft_cache_evaluate(struct nft_ctx *nft, struct list_head *cmds, - struct nft_cache_filter *filter); +int nft_cache_evaluate(struct nft_ctx *nft, struct list_head *cmds, + struct list_head *msgs, struct nft_cache_filter *filter, + unsigned int *flags); int nft_cache_update(struct nft_ctx *ctx, enum cmd_ops cmd, struct list_head *msgs, const struct nft_cache_filter *filter); -- cgit v1.2.3