From d0d79b4b7ece27d8092f54b4d91fec3af869cf2a Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Sat, 5 Jan 2019 21:14:42 +0000 Subject: [PATCH] xlat: update NDA_* constants * xlat/rtnl_neigh_attrs.in (NDA_PROTOCOL): New constant introduced by Linux kernel commit v5.0-rc1~129^2~79. * rtnl_neigh.c (ndmsg_nla_decoders): Add NDA_PROTOCOL. * NEWS: Mention this. --- NEWS | 2 +- rtnl_neigh.c | 1 + xlat/rtnl_neigh_attrs.in | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 7bfeef8f..8427dadd 100644 --- a/NEWS +++ b/NEWS @@ -2,7 +2,7 @@ Noteworthy changes in release ?.?? (????-??-??) =============================================== * Improvements - * Updated lists of BPF_*, BTRFS_*, KERN_*, and *_MAGIC constants. + * Updated lists of BPF_*, BTRFS_*, KERN_*, NDA_*, and *_MAGIC constants. * Bug fixes * Fixed strace-k test on alpha. diff --git a/rtnl_neigh.c b/rtnl_neigh.c index 1550d50f..cf0c7ba8 100644 --- a/rtnl_neigh.c +++ b/rtnl_neigh.c @@ -68,6 +68,7 @@ static const nla_decoder_t ndmsg_nla_decoders[] = { [NDA_MASTER] = decode_nla_ifindex, [NDA_LINK_NETNSID] = decode_nla_u32, [NDA_SRC_VNI] = NULL, + [NDA_PROTOCOL] = decode_nla_u8, }; DECL_NETLINK_ROUTE_DECODER(decode_ndmsg) diff --git a/xlat/rtnl_neigh_attrs.in b/xlat/rtnl_neigh_attrs.in index fed013a1..b59c63d2 100644 --- a/xlat/rtnl_neigh_attrs.in +++ b/xlat/rtnl_neigh_attrs.in @@ -10,3 +10,4 @@ NDA_IFINDEX 8 NDA_MASTER 9 NDA_LINK_NETNSID 10 NDA_SRC_VNI 11 +NDA_PROTOCOL 12 -- 2.40.0