Skip to contentSkip to conversation

ipv6 addrconf: Fix interface identifiers of 802.15.4 devices.

PATCH Applied YOSHIFUJI Hideaki 2 participants 2 messages Jan 28, 2013 – Jan 29, 2013

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

PATCH 1/1 ipv6 addrconf: Fix interface identifiers of 802.15.4 devices.

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

---
 net/ipv6/addrconf.c |    1 +
 1 file changed, 1 insertion(+)
net/ipv6/addrconf.c +1 -0
index 420e563..1b5d8cb 100644
@@ -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;
 }
 
Signature · 1 line
1.7.9.5