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-Tag: v3.8-rc7~2^2~33 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5e98a36ed4bf6ea396170e3af0dd4fcbe51d772f;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.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 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; }