diff options
author | Nicolas Dichtel <nicolas.dichtel@6wind.com> | 2010-12-07 18:38:31 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-12-10 15:49:36 -0500 |
commit | 5f75a1042feca37c0a436ba42a4b1f7f75c35778 (patch) | |
tree | 6738a8642df1f0f7c18a90368da2d80d33f092a5 /net | |
parent | 3700c3c2934467d53d443682f020cc5c1f75f1f2 (diff) |
ipv6: fix nl group when advertising a new link
New idev are advertised with NL group RTNLGRP_IPV6_IFADDR, but
should use RTNLGRP_IPV6_IFINFO.
Bug was introduced by commit 8d7a76c9.
Signed-off-by: Wang Xuefu <xuefu.wang@6wind.com>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Acked-by: Thomas Graf <tgraf@infradead.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv6/addrconf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 23cc8e1ce8d4..93b7a933a775 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c | |||
@@ -4021,11 +4021,11 @@ void inet6_ifinfo_notify(int event, struct inet6_dev *idev) | |||
4021 | kfree_skb(skb); | 4021 | kfree_skb(skb); |
4022 | goto errout; | 4022 | goto errout; |
4023 | } | 4023 | } |
4024 | rtnl_notify(skb, net, 0, RTNLGRP_IPV6_IFADDR, NULL, GFP_ATOMIC); | 4024 | rtnl_notify(skb, net, 0, RTNLGRP_IPV6_IFINFO, NULL, GFP_ATOMIC); |
4025 | return; | 4025 | return; |
4026 | errout: | 4026 | errout: |
4027 | if (err < 0) | 4027 | if (err < 0) |
4028 | rtnl_set_sk_err(net, RTNLGRP_IPV6_IFADDR, err); | 4028 | rtnl_set_sk_err(net, RTNLGRP_IPV6_IFINFO, err); |
4029 | } | 4029 | } |
4030 | 4030 | ||
4031 | static inline size_t inet6_prefix_nlmsg_size(void) | 4031 | static inline size_t inet6_prefix_nlmsg_size(void) |