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:
36:900e24b27bfb
Parent:
35:93c39d260a83
Child:
37:793b39683406
--- a/ip4/ip4.cpp	Fri Sep 22 13:55:56 2017 +0000
+++ b/ip4/ip4.cpp	Mon Sep 25 07:09:32 2017 +0000
@@ -10,6 +10,7 @@
 #include   "ip.h"
 #include  "ip4.h"
 #include  "ntp.h"
+#include  "mac.h"
 
 #define DEBUG false
 
@@ -209,7 +210,7 @@
     }
     if (!action) return DO_NOTHING;
     
-    memcpy(pDstMac, pSrcMac, 6);
+    MacCopy(pDstMac, pSrcMac);
     
     if (DEBUG) logHeader("IP4 packet replied to");