From ecd19f46056ba7b5c29160c4b455d077217dec56 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 24 Aug 2021 11:52:36 +0200 Subject: cache: skip set element netlink dump for add/delete element command Add NFT_CACHE_SETELEM_MAYBE to dump the set elements conditionally, only in case that the set interval flag is set on. Reported-by: Cristian Constantin Signed-off-by: Pablo Neira Ayuso --- include/cache.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/cache.h b/include/cache.h index ad907843..70aaf735 100644 --- a/include/cache.h +++ b/include/cache.h @@ -32,6 +32,7 @@ enum cache_level_flags { NFT_CACHE_CHAIN_BIT | NFT_CACHE_RULE_BIT, NFT_CACHE_FULL = __NFT_CACHE_MAX_BIT - 1, + NFT_CACHE_SETELEM_MAYBE = (1 << 28), NFT_CACHE_REFRESH = (1 << 29), NFT_CACHE_UPDATE = (1 << 30), NFT_CACHE_FLUSHED = (1 << 31), -- cgit v1.2.3