mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-26 12:14:56 +00:00
improve IPCP, add IPV6CP and support for IPv6
This commit is contained in:
1 parent
ba47e29c28
commit
1c7be6d543
9 files changed
+347
-224
No files matched your search
+1
-1
@@ -35,7 +35,7 @@ static bool cmsis_init(struct mg_tcpip_if *ifp) {
|
||||
mac->PowerControl(ARM_POWER_FULL);
|
||||
if (cap.mac_address) { // driver provides MAC address
|
||||
mac->GetMacAddress(&addr);
|
||||
memcpy(ifp->mac, &addr, sizeof(ifp->mac));
|
||||
memcpy(ifp->mac, &addr, sizeof(addr));
|
||||
} else { // we provide MAC address
|
||||
memcpy(&addr, ifp->mac, sizeof(addr));
|
||||
mac->SetMacAddress(&addr);
|
||||
|
||||
Reference in new issue
Block a user