diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-06-15 12:10:40 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-06-15 14:02:02 +0200 |
commit | 2d74990a1474a8a41231e61c88f9d2dc36a092c7 (patch) | |
tree | a22000378a47521a6db2ef117e53a8bc8655f8d6 /src/netlink.c | |
parent | 1a05ba4a8ab25af174363dac0f924494d48ae409 (diff) |
src: use new definitions from libnftnl
Use new definitions in libnftnl, so we can consider getting rid of them
at some point.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/netlink.c')
-rw-r--r-- | src/netlink.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/netlink.c b/src/netlink.c index f82d4fa3..cf24c8a3 100644 --- a/src/netlink.c +++ b/src/netlink.c @@ -1502,10 +1502,10 @@ static int netlink_delinearize_setelem(struct nftnl_set_elem *nlse, data = nftnl_set_elem_get(nlse, NFTNL_SET_ELEM_USERDATA, &len); expr->comment = udata_get_comment(data, len); } - if (nftnl_set_elem_is_set(nlse, NFT_SET_ELEM_ATTR_EXPR)) { + if (nftnl_set_elem_is_set(nlse, NFTNL_SET_ELEM_EXPR)) { const struct nftnl_expr *nle; - nle = nftnl_set_elem_get(nlse, NFT_SET_ELEM_ATTR_EXPR, NULL); + nle = nftnl_set_elem_get(nlse, NFTNL_SET_ELEM_EXPR, NULL); expr->stmt = netlink_parse_set_expr(set, nle); } |