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/monitor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/monitor.c') diff --git a/src/monitor.c b/src/monitor.c index 5b25c9d4..40c38114 100644 --- a/src/monitor.c +++ b/src/monitor.c @@ -275,7 +275,7 @@ static int netlink_events_set_cb(const struct nlmsghdr *nlh, int type, nls = netlink_set_alloc(nlh); flags = nftnl_set_get_u32(nls, NFTNL_SET_FLAGS); - if (flags & NFT_SET_ANONYMOUS) + if (set_is_anonymous(flags)) goto out; set = netlink_delinearize_set(monh->ctx, nls); @@ -392,7 +392,7 @@ static int netlink_events_setelem_cb(const struct nlmsghdr *nlh, int type, goto out; } - if (set->flags & NFT_SET_ANONYMOUS) + if (set_is_anonymous(set->flags)) goto out; /* we want to 'delinearize' the set_elem, but don't -- cgit v1.2.3