1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #2584 from gebart/pr/auto-init-eui64-local

sys: Set Local bit in EUI64 generated from CPU ID
This commit is contained in:
Oleg Hahm 2015-03-12 10:39:54 +01:00
commit 5a3a6e392c

View File

@ -144,6 +144,8 @@ void auto_init_net_if(void)
memcpy(&(eui64.uint32[0]), &hash_h, sizeof(uint32_t));
memcpy(&(eui64.uint32[1]), &hash_l, sizeof(uint32_t));
/* Set Local/Universal bit to Local since this EUI64 is made up. */
eui64.uint8[0] |= 0x02;
net_if_set_eui64(iface, &eui64);
#if ENABLE_DEBUG