netfilter: nf_tables: add nft_set_is_anonymous() helper
[linux-2.6-block.git] / net / netfilter / nft_dynset.c
index 66221ad891a9f281c1cf8e723c6a8c302e1f3741..ec0fd78231d87444edf2b1c3652e91d71c0de8c2 100644 (file)
@@ -184,7 +184,7 @@ static int nft_dynset_init(const struct nft_ctx *ctx,
        if (tb[NFTA_DYNSET_EXPR] != NULL) {
                if (!(set->flags & NFT_SET_EVAL))
                        return -EINVAL;
-               if (!(set->flags & NFT_SET_ANONYMOUS))
+               if (!nft_set_is_anonymous(set))
                        return -EOPNOTSUPP;
 
                priv->expr = nft_expr_init(ctx, tb[NFTA_DYNSET_EXPR]);