mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-23 03:00:56 +00:00
Make sure we dont use a multicast MAC for ethernet
This commit is contained in:
@@ -94,6 +94,7 @@ bool initEthernet()
|
|||||||
// createSSLCert();
|
// createSSLCert();
|
||||||
|
|
||||||
getMacAddr(mac); // FIXME use the BLE MAC for now...
|
getMacAddr(mac); // FIXME use the BLE MAC for now...
|
||||||
|
mac[0] &= 0xfe; // Make sure this is not a multicast MAC
|
||||||
|
|
||||||
if (config.network.address_mode == Config_NetworkConfig_AddressMode_DHCP) {
|
if (config.network.address_mode == Config_NetworkConfig_AddressMode_DHCP) {
|
||||||
LOG_INFO("starting Ethernet DHCP\n");
|
LOG_INFO("starting Ethernet DHCP\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user