diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-07-15 19:42:07 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-07-16 19:53:43 +0200 |
commit | 04129edfe031c34d22e182f617d06e35d93a408f (patch) | |
tree | d9c6f953cee8977ae3c443e4ff8e36968382e526 /src/rule.c | |
parent | 7d3c01182e883e18050903b9176593c517e4ff91 (diff) |
src: use set_is_anonymous()
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/rule.c')
-rw-r--r-- | src/rule.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |