diff options
author | Nicolas Dichtel <nicolas.dichtel@6wind.com> | 2018-11-26 15:42:06 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-27 16:20:20 -0800 |
commit | 288f06a001eb6265122c620295b68a0dd53d1482 (patch) | |
tree | 3673bbad5bf3929aa563dfa9455c2d94cc248554 /include/uapi | |
parent | 3a4f68bf660414801781fd06506a9c75c2d936e5 (diff) | |
download | talos-obmc-linux-288f06a001eb6265122c620295b68a0dd53d1482.tar.gz talos-obmc-linux-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/uapi')
-rw-r--r-- | include/uapi/linux/net_namespace.h | 1 |
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, }; |