]> git.ipfire.org Git - thirdparty/iproute2.git/commit
ip netns: Identify netns for the current process
authorvadimk <vadim4j@gmail.com>
Fri, 7 Nov 2014 16:25:30 +0000 (18:25 +0200)
committerStephen Hemminger <shemming@brocade.com>
Sat, 29 Nov 2014 19:19:11 +0000 (11:19 -0800)
commit0948adc01a3cee312e2bf81cfffe316f0b5f950b
tree63d66c1f2d2cdc628f3e4cd6be437389ce3a674e
parent18f39a3a02bd5a09650a3a9b71e84652137eedac
ip netns: Identify netns for the current process

As 'ip' util will share the same netns from the caller
process then we can just look at /proc/self/.. to show
the netns of the current process by:

    ip netns id

Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
ip/ipnetns.c
man/man8/ip-netns.8