From: YOSHIFUJI Hideaki / 吉藤英明 Date: Mon, 28 Jan 2013 10:44:29 +0000 (+0000) Subject: ipv6 addrconf: Fix interface identifiers of 802.15.4 devices. X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=5e98a36ed4bf6ea396170e3af0dd4fcbe51d772f;p=sagit-ice-cold%2Fkernel_xiaomi_msm8998.git ipv6 addrconf: Fix interface identifiers of 802.15.4 devices. The "Universal/Local" (U/L) bit must be complmented according to RFC4944 and RFC2464. Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller --- diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 420e56326384..1b5d8cb9b123 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; }