aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorNicolas Dichtel <nicolas.dichtel@6wind.com>2018-11-26 15:42:06 +0100
committerDavid S. Miller <davem@davemloft.net>2018-11-27 16:20:20 -0800
commit288f06a001eb6265122c620295b68a0dd53d1482 (patch)
tree3673bbad5bf3929aa563dfa9455c2d94cc248554 /include
parentnetns: enable to specify a nsid for a get request (diff)
downloadlinux-dev-288f06a001eb6265122c620295b68a0dd53d1482.tar.xz
linux-dev-288f06a001eb6265122c620295b68a0dd53d1482.zip
netns: enable to dump full nsid translation table
Like the previous patch, the goal is to ease to convert nsids from one netns to another netns. A new attribute (NETNSA_CURRENT_NSID) is added to the kernel answer when NETNSA_TARGET_NSID is provided, thus the user can easily convert nsids. Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Reviewed-by: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/uapi/linux/net_namespace.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/net_namespace.h b/include/uapi/linux/net_namespace.h
index 0ed9dd61d32a..9f9956809565 100644
--- a/include/uapi/linux/net_namespace.h
+++ b/include/uapi/linux/net_namespace.h
@@ -17,6 +17,7 @@ enum {
NETNSA_PID,
NETNSA_FD,
NETNSA_TARGET_NSID,
+ NETNSA_CURRENT_NSID,
__NETNSA_MAX,
};