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:
50:492f2d2954e4
Parent:
49:1a6336f2b3f9
Child:
53:77f8a49adf89
--- a/ip4/ip4.cpp	Thu Nov 02 08:10:55 2017 +0000
+++ b/ip4/ip4.cpp	Fri Nov 03 16:19:15 2017 +0000
@@ -5,7 +5,7 @@
 #include   "icmp4.h"
 #include "udptcp4.h"
 #include     "ar4.h"
-#include      "nr.h"
+#include     "nr4.h"
 #include    "dhcp.h"
 #include     "eth.h"
 #include      "ip.h"
@@ -154,8 +154,11 @@
         return DO_NOTHING;
     }
     
-    if (srcIp) Ar4AddIpRecord(trace, pSrcMac, srcIp);
-    NrMakeRequestForNameFromIp4(srcIp);
+    if (srcIp)
+    {
+        Ar4AddIpRecord(trace, pSrcMac, srcIp);
+        Nr4MakeRequestForNameFromIp(srcIp);
+    }
 
     int action = DO_NOTHING;
     switch (protocol)