Re: [PATCH iproute2] ipnetns: parse nsid as a signed integer

2018-11-21 Thread Stephen Hemminger
On Wed, 21 Nov 2018 10:44:27 +0100 Nicolas Dichtel wrote: > Don't confuse the user, nsid is a signed integer, this kind of command > should return an error: 'ip netns set foo 0x'. > > Also, a valid value is a positive value. To let the kernel chooses a value, > the keyword 'auto' must

[PATCH iproute2] ipnetns: parse nsid as a signed integer

2018-11-21 Thread Nicolas Dichtel
Don't confuse the user, nsid is a signed integer, this kind of command should return an error: 'ip netns set foo 0x'. Also, a valid value is a positive value. To let the kernel chooses a value, the keyword 'auto' must be used. Signed-off-by: Nicolas Dichtel --- ip/ipnetns.c | 8