Re: [PATCH iproute2] ip netns: Identify netns for the current process
From: Stephen Hemminger <stephen@networkplumber.org>
Date: 2014-11-29 19:19:01
From: Stephen Hemminger <stephen@networkplumber.org>
Date: 2014-11-29 19:19:01
On Fri, 7 Nov 2014 18:25:30 +0200 Vadim Kochan [off-list ref] wrote:
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 <redacted>Useful, applied.