OSDN Git Service

netns: enable to specify a nsid for a get request
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Mon, 26 Nov 2018 14:42:05 +0000 (15:42 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Nov 2018 00:20:20 +0000 (16:20 -0800)
commit3a4f68bf660414801781fd06506a9c75c2d936e5
treeaddaab122fc0bd50f974b12dac242b76000115d2
parentcff478b9d9ccaee0de0e02700c63addf007b5d3c
netns: enable to specify a nsid for a get request

Combined with NETNSA_TARGET_NSID, it enables to "translate" a nsid from one
netns to a nsid of another netns.
This is useful when using NETLINK_F_LISTEN_ALL_NSID because it helps the
user to interpret a nsid received from an other netns.

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>
net/core/net_namespace.c