From 04129edfe031c34d22e182f617d06e35d93a408f Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 15 Jul 2019 19:42:07 +0200 Subject: src: use set_is_anonymous() Signed-off-by: Pablo Neira Ayuso --- src/rule.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rule.c') diff --git a/src/rule.c b/src/rule.c index e04fc09b..52d8181f 100644 --- a/src/rule.c +++ b/src/rule.c @@ -388,7 +388,7 @@ struct set *set_lookup_fuzzy(const char *set_name, list_for_each_entry(table, &cache->list, list) { list_for_each_entry(set, &table->sets, list) { - if (set->flags & NFT_SET_ANONYMOUS) + if (set_is_anonymous(set->flags)) continue; if (!strcmp(set->handle.set.name, set_name)) { *t = table; @@ -1272,7 +1272,7 @@ static void table_print(const struct table *table, struct output_ctx *octx) delim = "\n"; } list_for_each_entry(set, &table->sets, list) { - if (set->flags & NFT_SET_ANONYMOUS) + if (set_is_anonymous(set->flags)) continue; nft_print(octx, "%s", delim); set_print(set, octx); -- cgit v1.2.3