Browse Source

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.
Dmitry V. Levin 11 months ago
parent
commit
d0d79b4b7e
3 changed files with 3 additions and 1 deletions
  1. 1
    1
      NEWS
  2. 1
    0
      rtnl_neigh.c
  3. 1
    0
      xlat/rtnl_neigh_attrs.in

+ 1
- 1
NEWS View File

@@ -2,7 +2,7 @@ Noteworthy changes in release ?.?? (????-??-??)
2 2
 ===============================================
3 3
 
4 4
 * Improvements
5
-  * Updated lists of BPF_*, BTRFS_*, KERN_*, and *_MAGIC constants.
5
+  * Updated lists of BPF_*, BTRFS_*, KERN_*, NDA_*, and *_MAGIC constants.
6 6
 
7 7
 * Bug fixes
8 8
   * Fixed strace-k test on alpha.

+ 1
- 0
rtnl_neigh.c View File

@@ -68,6 +68,7 @@ static const nla_decoder_t ndmsg_nla_decoders[] = {
68 68
 	[NDA_MASTER]		= decode_nla_ifindex,
69 69
 	[NDA_LINK_NETNSID]	= decode_nla_u32,
70 70
 	[NDA_SRC_VNI]		= NULL,
71
+	[NDA_PROTOCOL]		= decode_nla_u8,
71 72
 };
72 73
 
73 74
 DECL_NETLINK_ROUTE_DECODER(decode_ndmsg)

+ 1
- 0
xlat/rtnl_neigh_attrs.in View File

@@ -10,3 +10,4 @@ NDA_IFINDEX		8
10 10
 NDA_MASTER		9
11 11
 NDA_LINK_NETNSID	10
12 12
 NDA_SRC_VNI		11
13
+NDA_PROTOCOL		12

Loading…
Cancel
Save