Skip to content
Snippets Groups Projects
Commit 5a3a6e39 authored by Oleg Hahm's avatar Oleg Hahm
Browse files

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

sys: Set Local bit in EUI64 generated from CPU ID
parents 7256a139 57bf21a4
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment