Le 17/09/2015 02:54, Rick Jones a écrit :
On 09/16/2015 05:46 PM, Ani Sinha wrote:
Hi guys

just a stupid question. Is it possible to get a list of all active
network namespaces in the kernel through /proc or some other
interface?

Presumably you could copy what "ip netns" does, which appears to be to look in
/var/run/netns .  At least that is what an strace of that command suggests.
This will only list netns referenced in '/var/run/netns', which is not 'all'
existing netns (most probably only netns created by iproute2).

Regards,
Nicolas
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to