]> git.baikalelectronics.ru Git - kernel.git/commit
netns: return RTM_NEWNSID instead of RTM_GETNSID on a get
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Mon, 11 May 2015 13:57:31 +0000 (15:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 May 2015 22:53:25 +0000 (18:53 -0400)
commit6858023e4db5ac5e8268e62e652a4afc5a92ceb6
treedac2ac91897e13820e331528fccbf43892cf424a
parent407a256dc9f795de5f6038fd5cc97645c68a809d
netns: return RTM_NEWNSID instead of RTM_GETNSID on a get

Usually, RTM_NEWxxx is returned on a get (same as a dump).

Fixes: b68b7033de9d ("netns: add rtnl cmd to add and get peer netns ids")
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/net_namespace.c