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:
- 22:914b970356f0
- Parent:
- 16:f416ef583c89
- Child:
- 23:b641979389b2
--- a/eth/eth.cpp Thu Jun 29 19:42:28 2017 +0000 +++ b/eth/eth.cpp Mon Jul 03 14:29:07 2017 +0000 @@ -98,6 +98,12 @@ if (action == DO_NOTHING) { + action = ArpPollForPacketToSend(pData, &dataLength); + EthProtocol = ARP; + } + + if (action == DO_NOTHING) + { action = Ip6PollForPacketToSend(pData, &dataLength, pHeader->dst); EthProtocol = IPV6; }