A stack which works with or without an Mbed os library. Provides IPv4 or IPv6 with a full 1500 byte buffer.
Dependents: oldheating gps motorhome heating
Diff: eth/eth.cpp
- Revision:
- 36:900e24b27bfb
- Parent:
- 33:714a0345e59b
- Child:
- 37:793b39683406
--- a/eth/eth.cpp Fri Sep 22 13:55:56 2017 +0000 +++ b/eth/eth.cpp Mon Sep 25 07:09:32 2017 +0000 @@ -41,7 +41,7 @@ MacMake(action, EthProtocol, pHeader->dst); - memcpy(pHeader->src, MacLocal, 6); //Put our MAC into the source + MacCopy(pHeader->src, MacLocal); //Put our MAC into the source pHeader->typ = NetToHost16(EthProtocol); *pSize = HEADER_SIZE + dataLength;