Ruleset listing with --stateless should not display the content of
sets that are dynamically populated from the packet path.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
{
set_print_declaration(set, opts, octx);
+ if (set->flags & NFT_SET_EVAL && octx->stateless) {
+ nft_print(octx, "%s}%s", opts->tab, opts->nl);
+ return;
+ }
+
if (set->init != NULL && set->init->size > 0) {
nft_print(octx, "%s%selements = ", opts->tab, opts->tab);
expr_print(set->init, octx);