Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
d-a-v committed Jun 3, 2020
1 parent 50d9e83 commit 8b81709
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cores/esp8266/lwIPIntfDev.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@ boolean LwipIntfDev<RawDev>::begin (const uint8_t* macAddress, uint16_t mtu)
memset(_macAddress, 0, 6);
_macAddress[0] = 0xEE;
#endif
_macAddress[3] += _netif.num;
_macAddress[3] += _netif.num; // alter base mac address
_macAddress[0] &= 0xfe; // set as locally administered, unicast, per
_macAddress[0] |= 0x02; // https://en.wikipedia.org/wiki/MAC_address#Universal_vs._local
}

if (!RawDev::begin(_macAddress))
Expand Down

0 comments on commit 8b81709

Please sign in to comment.