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>
This commit is contained in:
parent
3700c3c293
commit
5f75a1042f
|
@ -4021,11 +4021,11 @@ void inet6_ifinfo_notify(int event, struct inet6_dev *idev)
|
||||||
kfree_skb(skb);
|
kfree_skb(skb);
|
||||||
goto errout;
|
goto errout;
|
||||||
}
|
}
|
||||||
rtnl_notify(skb, net, 0, RTNLGRP_IPV6_IFADDR, NULL, GFP_ATOMIC);
|
rtnl_notify(skb, net, 0, RTNLGRP_IPV6_IFINFO, NULL, GFP_ATOMIC);
|
||||||
return;
|
return;
|
||||||
errout:
|
errout:
|
||||||
if (err < 0)
|
if (err < 0)
|
||||||
rtnl_set_sk_err(net, RTNLGRP_IPV6_IFADDR, err);
|
rtnl_set_sk_err(net, RTNLGRP_IPV6_IFINFO, err);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline size_t inet6_prefix_nlmsg_size(void)
|
static inline size_t inet6_prefix_nlmsg_size(void)
|
||||||
|
|
Loading…
Reference in New Issue