Skip to content

Commit

Permalink
sys: Set Local bit in EUI64 generated from CPU ID
Browse files Browse the repository at this point in the history
  • Loading branch information
Joakim Gebart authored and OlegHahm committed Mar 31, 2015
1 parent 4ac85aa commit c10ec34
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sys/auto_init/auto_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c10ec34

Please sign in to comment.