OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6938f85
)
netns: return RTM_NEWNSID instead of RTM_GETNSID on a get
author
Nicolas Dichtel
<nicolas.dichtel@6wind.com>
Mon, 11 May 2015 13:57:31 +0000
(15:57 +0200)
committer
David S. Miller
<davem@davemloft.net>
Tue, 12 May 2015 22:53:25 +0000
(18:53 -0400)
Usually, RTM_NEWxxx is returned on a get (same as a dump).
Fixes:
0c7aecd4bde4
("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
patch
|
blob
|
history
diff --git
a/net/core/net_namespace.c
b/net/core/net_namespace.c
index
78fc04a
..
572af00
100644
(file)
--- a/
net/core/net_namespace.c
+++ b/
net/core/net_namespace.c
@@
-601,7
+601,7
@@
static int rtnl_net_getid(struct sk_buff *skb, struct nlmsghdr *nlh)
}
err = rtnl_net_fill(msg, NETLINK_CB(skb).portid, nlh->nlmsg_seq, 0,
- RTM_
GET
NSID, net, peer, -1);
+ RTM_
NEW
NSID, net, peer, -1);
if (err < 0)
goto err_out;