Re: [PATCH iproute2] ipmonitor: fix ip monitor can't work when NET_NS is not enabled

2016-09-21 Thread Stephen Hemminger
On Tue, 20 Sep 2016 02:09:02 -0700 Liping Zhang wrote: > From: Liping Zhang > > In ip monitor, netns_map_init will check getnsid is supported or not. > But when /proc/self/ns/net does not exist, we just print out error > messages and exit. So user cannot use ip monitor anymore when > CONFIG_NET

Re: [PATCH iproute2] ipmonitor: fix ip monitor can't work when NET_NS is not enabled

2016-09-20 Thread Nicolas Dichtel
Le 20/09/2016 à 11:09, Liping Zhang a écrit : > From: Liping Zhang > > In ip monitor, netns_map_init will check getnsid is supported or not. > But when /proc/self/ns/net does not exist, we just print out error > messages and exit. So user cannot use ip monitor anymore when > CONFIG_NET_NS is disa

[PATCH iproute2] ipmonitor: fix ip monitor can't work when NET_NS is not enabled

2016-09-20 Thread Liping Zhang
From: Liping Zhang In ip monitor, netns_map_init will check getnsid is supported or not. But when /proc/self/ns/net does not exist, we just print out error messages and exit. So user cannot use ip monitor anymore when CONFIG_NET_NS is disabled: # ip monitor open("/proc/self/ns/net"): No such