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/eth/mac.cpp	Fri Sep 22 13:55:56 2017 +0000
+++ b/eth/mac.cpp	Mon Sep 25 07:09:32 2017 +0000
@@ -3,7 +3,18 @@
 #include  "eth.h"
 
 char MacLocal[6];
-
+void MacClear(char* mac)
+{
+    memset(mac, 0, 6);
+}
+void MacCopy(char* macTo, char* macFrom)
+{
+    memcpy(macTo, macFrom, 6);
+}
+bool MacIsSame(char* macA, char* macB)
+{
+    return memcmp(macA, macB, 6) == 0;
+}
 bool MacIsEmpty(char* mac)
 {
            if (*mac) return false;