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:
132:db2174b36a6d
Parent:
116:60521b29e4c9
Child:
133:a37eb35a03f1
--- a/resolve/ar4.c	Tue Mar 19 12:12:26 2019 +0000
+++ b/resolve/ar4.c	Wed Mar 20 10:55:30 2019 +0000
@@ -64,7 +64,7 @@
     i = getExistingIp(ip);
     if (i > -1)
     {
-        if (!MsTimerHasElapsed(records[i].elapsed, FREEZE_TIMEOUT_MS)) return;
+        if (!MsTimerInterval(records[i].elapsed, FREEZE_TIMEOUT_MS)) return;
         if (Ar4Trace)
         {
             LogTimeF("AR4 Updated request for MAC of ");
@@ -180,11 +180,11 @@
 }
 static void clearCache(struct record* pr)
 {
-    if (MsTimerHasElapsed(pr->elapsed, CACHE_TIMEOUT_MS)) clear(pr);
+    if (MsTimerInterval(pr->elapsed, CACHE_TIMEOUT_MS)) clear(pr);
 }
 static void retry(struct record* pr)
 {
-    if (pr->state == STATE_SENT && MsTimerHasElapsed(pr->elapsed, REPLY_TIMEOUT_MS))
+    if (pr->state == STATE_SENT && MsTimerInterval(pr->elapsed, REPLY_TIMEOUT_MS))
     {
         if (pr->tries < SEND_ATTEMPTS)
         {