]> git.ipfire.org Git - thirdparty/nftables.git/commit
src: use UDATA defines from libnftnl
authorPhil Sutter <phil@nwl.cc>
Thu, 25 Apr 2019 12:56:54 +0000 (14:56 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 3 May 2019 18:02:45 +0000 (20:02 +0200)
commit10da57e36147bf5c73cd2820e11ec124ecfffc83
treebc92463a0dcdd81a0b82acd8914b43abcc67ab7d
parent92591aa0da84821238107f2f1515a57cbbd2cf6a
src: use UDATA defines from libnftnl

Userdata attribute names have been added to libnftnl, use them instead
of the local copy.

While being at it, rename udata_get_comment() in netlink_delinearize.c
and the callback it uses since the function is specific to rules. Also
integrate the existence check for NFTNL_RULE_USERDATA into it along with
the call to nftnl_rule_get_data().

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/rule.h
src/mnl.c
src/monitor.c
src/netlink.c
src/netlink_delinearize.c
src/netlink_linearize.c
src/parser_bison.y
src/segtree.c