netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net] ipv6 addrconf: Fix interface identifiers of 802.15.4 devices.
@ 2013-01-28 20:44 YOSHIFUJI Hideaki
  2013-01-29 20:45 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: YOSHIFUJI Hideaki @ 2013-01-28 20:44 UTC (permalink / raw)
  To: David Miller, netdev
  Cc: linux-zigbee-devel, alex.bluesman.smirnov, YOSHIFUJI Hideaki

The "Universal/Local" (U/L) bit must be complmented according to RFC4944
and RFC2464.

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
---
 net/ipv6/addrconf.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
index 420e563..1b5d8cb 100644
--- a/net/ipv6/addrconf.c
+++ b/net/ipv6/addrconf.c
@@ -1660,6 +1660,7 @@ static int addrconf_ifid_eui64(u8 *eui, struct net_device *dev)
 	if (dev->addr_len != IEEE802154_ADDR_LEN)
 		return -1;
 	memcpy(eui, dev->dev_addr, 8);
+	eui[0] ^= 2;
 	return 0;
 }
 
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH net] ipv6 addrconf: Fix interface identifiers of 802.15.4 devices.
  2013-01-28 20:44 [PATCH net] ipv6 addrconf: Fix interface identifiers of 802.15.4 devices YOSHIFUJI Hideaki
@ 2013-01-29 20:45 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2013-01-29 20:45 UTC (permalink / raw)
  To: yoshfuji; +Cc: netdev, linux-zigbee-devel, alex.bluesman.smirnov

From: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Date: Tue, 29 Jan 2013 05:44:29 +0900

> The "Universal/Local" (U/L) bit must be complmented according to RFC4944
> and RFC2464.
> 
> Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>

Applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-01-29 20:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-28 20:44 [PATCH net] ipv6 addrconf: Fix interface identifiers of 802.15.4 devices YOSHIFUJI Hideaki
2013-01-29 20:45 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).