]> granicus.if.org Git - strace/commitdiff
xlat: update NETNSA_* 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_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.

NEWS
rtnl_nsid.c
xlat/rtnl_nsid_attrs.in

diff --git a/NEWS b/NEWS
index d5ac62475acc577b867b77f459f73a7a2ed747c6..6f62d7bf00854910a3d86a7f74f752ad2b33adb2 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -2,8 +2,8 @@ Noteworthy changes in release ?.?? (????-??-??)
 ===============================================
 
 * Improvements
-  * Updated lists of BPF_*, BTRFS_*, KERN_*, KVM_CAP_*, NDA_*, NT_*, PR_*,
-    SECCOMP_*, V4L2_*, and *_MAGIC constants.
+  * Updated lists of BPF_*, BTRFS_*, KERN_*, KVM_CAP_*, NDA_*, NETNSA_*, NT_*,
+    PR_*, SECCOMP_*, V4L2_*, and *_MAGIC constants.
 
 * Bug fixes
   * Fixed strace-k test on alpha.
index 1bf191c83e8cf66238a1fcefc215ca89afd86c6e..886301099af7788d45fda838abc5dbeb7651c55b 100644 (file)
 #include "xlat/rtnl_nsid_attrs.h"
 
 static const nla_decoder_t rtgenmsg_nla_decoders[] = {
-       [NETNSA_NSID]   = decode_nla_s32,
-       [NETNSA_PID]    = decode_nla_u32,
-       [NETNSA_FD]     = decode_nla_fd
+       [NETNSA_NSID]           = decode_nla_s32,
+       [NETNSA_PID]            = decode_nla_u32,
+       [NETNSA_FD]             = decode_nla_fd,
+       [NETNSA_TARGET_NSID]    = decode_nla_s32,
+       [NETNSA_CURRENT_NSID]   = decode_nla_s32
 };
 
 DECL_NETLINK_ROUTE_DECODER(decode_rtgenmsg)
index f5b01bfc72e6284af49fb8f10574329bd6f98875..591fb23f50dbcf984332ead58f3e9da29f9fe669 100644 (file)
@@ -3,3 +3,5 @@ NETNSA_NONE                     0
 NETNSA_NSID                    1
 NETNSA_PID                     2
 NETNSA_FD                      3
+NETNSA_TARGET_NSID             4
+NETNSA_CURRENT_NSID            5