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: ip4/ip4.cpp
- Revision:
- 42:222a4f45f916
- Parent:
- 37:793b39683406
- Child:
- 43:bc028d5a6424
--- a/ip4/ip4.cpp Fri Oct 06 10:18:01 2017 +0000 +++ b/ip4/ip4.cpp Sun Oct 15 17:54:09 2017 +0000 @@ -231,7 +231,8 @@ int action = DO_NOTHING; if (!action) action = Udp4PollForPacketToSend(pData, &dataLength, &srcIp, &dstIp); if (!action) return DO_NOTHING; - switch (action) + int dest = ActionGetDestPart(action); + switch (dest) { case UNICAST: case UNICAST_DNS: @@ -239,10 +240,14 @@ case UNICAST_NTP: ArIpToMac4(dstIp, pDstMac); //Make the remote MAC from ARP break; + case MULTICAST_NODE: + case MULTICAST_ROUTER: + case MULTICAST_MDNS: + case MULTICAST_LLMNR: case BROADCAST: break; default: - LogTimeF("Ip4PollForPacketToSend - undefined action %d\r\n", action); + LogTimeF("Ip4PollForPacketToSend - undefined destination %d\r\n", dest); break; }