Skip to contentSkip to conversation

ipv6: fix nl group when advertising a new link

PATCH Applied Nicolas Dichtel 3 participants 3 messages Dec 8, 2010 – Dec 10, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ipv6: fix nl group when advertising a new link

Hi,

please consider the following patch.

Regards,
Nicolas

Quoted 1 line

From d2ed52e7fcb639470c89045f7b0ce31eb681896a Mon Sep 17 00:00:00 2001

From: Wang Xuefu <[email protected]>
Date: Wed, 8 Dec 2010 10:24:48 +0100
Subject: [PATCH] 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.

---
 net/ipv6/addrconf.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
net/ipv6/addrconf.c +2 -2
index ab70a3f..0f695a1 100644
@@ -4021,11 +4021,11 @@ void inet6_ifinfo_notify(int event, struct inet6_dev *idev)
 		kfree_skb(skb);
 		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;
 errout:
 	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)
Signature · 1 line
1.5.6.5
Acked-by on v1 1/1
#1 lore raw
Quoted 11 lines · Nicolas Dichtel
Quoted 1 line

From d2ed52e7fcb639470c89045f7b0ce31eb681896a Mon Sep 17 00:00:00 2001

From: Wang Xuefu <[email protected]>
Date: Wed, 8 Dec 2010 10:24:48 +0100
Subject: [PATCH] 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.

maintainer Applied
#2 lore raw

From: Thomas Graf <[email protected]>
Date: Wed, 8 Dec 2010 05:04:54 -0500

Quoted 6 lines · Nicolas Dichtel
Quoted 5 lines
Quoted 1 line

From d2ed52e7fcb639470c89045f7b0ce31eb681896a Mon Sep 17 00:00:00 2001

From: Wang Xuefu <[email protected]>
Date: Wed, 8 Dec 2010 10:24:48 +0100
Subject: [PATCH] ipv6: fix nl group when advertising a new link

Quoted 8 lines
Quoted 6 lines

New idev are advertised with NL group RTNLGRP_IPV6_IFADDR, but should use RTNLGRP_IPV6_IFINFO.
Bug was introduced by commit 8d7a76c9.

Applied to net-2.6, thanks.