Browse Source

xlat: update NETNSA_* constants

* xlat/rtnl_nsid_attrs.in (NETNSA_TARGET_NSID, NETNSA_CURRENT_NSID): New
constants introduced by Linux kernel commits v5.0-rc1~129^2~201^2~2
and v5.0-rc1~129^2~201^2, respectively.
* rtnl_nsid.c (rtgenmsg_nla_decoders): Add NETNSA_TARGET_NSID
and NETNSA_CURRENT_NSID.
* NEWS: Mention this.
Dmitry V. Levin 11 months ago
parent
commit
17a1b88f8e
3 changed files with 9 additions and 5 deletions
  1. 2
    2
      NEWS
  2. 5
    3
      rtnl_nsid.c
  3. 2
    0
      xlat/rtnl_nsid_attrs.in

+ 2
- 2
NEWS View File

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

+ 5
- 3
rtnl_nsid.c View File

@@ -18,9 +18,11 @@
18 18
 #include "xlat/rtnl_nsid_attrs.h"
19 19
 
20 20
 static const nla_decoder_t rtgenmsg_nla_decoders[] = {
21
-	[NETNSA_NSID]	= decode_nla_s32,
22
-	[NETNSA_PID]	= decode_nla_u32,
23
-	[NETNSA_FD]	= decode_nla_fd
21
+	[NETNSA_NSID]		= decode_nla_s32,
22
+	[NETNSA_PID]		= decode_nla_u32,
23
+	[NETNSA_FD]		= decode_nla_fd,
24
+	[NETNSA_TARGET_NSID]	= decode_nla_s32,
25
+	[NETNSA_CURRENT_NSID]	= decode_nla_s32
24 26
 };
25 27
 
26 28
 DECL_NETLINK_ROUTE_DECODER(decode_rtgenmsg)

+ 2
- 0
xlat/rtnl_nsid_attrs.in View File

@@ -3,3 +3,5 @@ NETNSA_NONE			0
3 3
 NETNSA_NSID			1
4 4
 NETNSA_PID			2
5 5
 NETNSA_FD			3
6
+NETNSA_TARGET_NSID		4
7
+NETNSA_CURRENT_NSID		5

Loading…
Cancel
Save