summaryrefslogtreecommitdiffstats
path: root/src/rule.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2019-07-15 19:42:07 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2019-07-16 19:53:43 +0200
commit04129edfe031c34d22e182f617d06e35d93a408f (patch)
treed9c6f953cee8977ae3c443e4ff8e36968382e526 /src/rule.c
parent7d3c01182e883e18050903b9176593c517e4ff91 (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.c4
1 files changed, 2 insertions, 2 deletions
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);