]> granicus.if.org Git - strace/commitdiff
xlat: update NDA_* constants
authorDmitry V. Levin <ldv@altlinux.org>
Sat, 5 Jan 2019 21:14:42 +0000 (21:14 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sat, 5 Jan 2019 21:14:42 +0000 (21:14 +0000)
* 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
rtnl_neigh.c
xlat/rtnl_neigh_attrs.in

diff --git a/NEWS b/NEWS
index 7bfeef8f0eafc3b248c9b63a701a9848ab523af6..8427dadd3c746b2d802150ac3bab8936c0e00717 100644 (file)
--- 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.
index 1550d50ff6016063ef96b57d0a7bd03a199883b1..cf0c7ba8d29be8efd3920a34018942ecb31624fa 100644 (file)
@@ -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)
index fed013a1bb851997210440ad7d5839532924c953..b59c63d2fbcf70b6eb1acb142eb1f47279b921de 100644 (file)
@@ -10,3 +10,4 @@ NDA_IFINDEX           8
 NDA_MASTER             9
 NDA_LINK_NETNSID       10
 NDA_SRC_VNI            11
+NDA_PROTOCOL           12