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

Revision:
33:714a0345e59b
Parent:
30:e34173b7585c
Child:
35:93c39d260a83
--- a/ip4/ip4.cpp	Thu Aug 17 14:21:02 2017 +0000
+++ b/ip4/ip4.cpp	Wed Aug 23 18:02:42 2017 +0000
@@ -186,10 +186,11 @@
     int action = DO_NOTHING;
     switch (protocol)
     {
-        case ICMP: action = IcmpHandleReceivedPacket(&Ip4Src, &Ip4Dst, &dataLength, pData); break;
-        case IGMP: return DO_NOTHING;
-        case UDP:  action = Udp4HandleReceivedPacket(&Ip4Src, &Ip4Dst, &dataLength, pData); break;
-        case TCP:  action = Tcp4HandleReceivedPacket(&Ip4Src, &Ip4Dst, &dataLength, pData); break;        
+        case ICMP:   action = IcmpHandleReceivedPacket(&Ip4Src, &Ip4Dst, &dataLength, pData); break;
+        case IGMP:   return DO_NOTHING;
+        case UDP:    action = Udp4HandleReceivedPacket(&Ip4Src, &Ip4Dst, &dataLength, pData); break;
+        case TCP:    action = Tcp4HandleReceivedPacket(&Ip4Src, &Ip4Dst, &dataLength, pData); break;
+        case IP6IN4: return DO_NOTHING;   
         default:
             logHeader("IP4 packet unhandled");
             return DO_NOTHING;