]> git.ipfire.org Git - thirdparty/iproute2.git/commit
ipnetns: parse nsid as a signed integer
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Wed, 21 Nov 2018 09:44:27 +0000 (10:44 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 21 Nov 2018 17:35:37 +0000 (09:35 -0800)
commitebe3ce2fcc5ff3f00aa63122e9e1d5482ccbf6c9
treeafbafa9865475b19eddaef2d90a7fbd2e0fb82c0
parente99c4443ae1d582950a2207067368a59152bbd77
ipnetns: parse nsid as a signed integer

Don't confuse the user, nsid is a signed integer, this kind of command
should return an error: 'ip netns set foo 0xffffffff'.

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 <nicolas.dichtel@6wind.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
ip/ipnetns.c