Commit 5e98a36ed4bf6ea396170e3af0dd4fcbe51d772f

Authored by YOSHIFUJI Hideaki / 吉藤英明
Committed by David S. Miller
1 parent 00d3d51e9d

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 <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

... ... @@ -1660,6 +1660,7 @@
1660 1660 if (dev->addr_len != IEEE802154_ADDR_LEN)
1661 1661 return -1;
1662 1662 memcpy(eui, dev->dev_addr, 8);
  1663 + eui[0] ^= 2;
1663 1664 return 0;
1664 1665 }
1665 1666