diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-08-24 11:52:36 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-08-26 10:35:23 +0200 |
commit | ecd19f46056ba7b5c29160c4b455d077217dec56 (patch) | |
tree | 115312862ae51962586456773f56c8be77959f60 /include/cache.h | |
parent | 2577939cc5758d53192d9aa3b9a6b50cded47325 (diff) |
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 <const.crist@googlemail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/cache.h')
-rw-r--r-- | include/cache.h | 1 |
1 files changed, 1 insertions, 0 deletions
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), |