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:
193:47a953ab571b
Parent:
187:122fc1996c86
Child:
195:bd5b123143ca
--- a/resolve/ar4.c	Fri Jan 22 13:24:08 2021 +0000
+++ b/resolve/ar4.c	Sun Jan 24 15:09:55 2021 +0000
@@ -152,6 +152,15 @@
     }
     return false;
 }
+bool Ar4CheckHaveMacAndFetchIfNot(uint32_t ip)
+{
+    if (!Ar4HaveMacForIp(ip))
+    {
+        Ar4MakeRequestForMacFromIp(ip); //The request is only repeated if made after a freeze time - call as often as you want.
+        return false;
+    }
+    return true;
+}
 uint32_t Ar4IndexToIp(int i)
 {
     return records[i].ip;