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:
178:52714fef5ca1
Parent:
172:9bc3c7b2cca1
--- a/net.c	Sun Dec 27 17:26:21 2020 +0000
+++ b/net.c	Tue Dec 29 19:14:35 2020 +0000
@@ -20,8 +20,6 @@
 bool NetTraceStack      = false;
 bool NetTraceNewLine    = false;
 bool NetTraceVerbose    = false;
-const char* NetName4;
-const char* NetName6;
 
 static bool hostMatched = false;
 bool NetTraceHostGetMatched()
@@ -155,10 +153,8 @@
     *ph = *pn; ph++; pn++; // 6<-6
     *ph = *pn;             // 7<-7
 }
-void NetInit(const char* name4, const char* name6)
-{   
-    NetName4 = name4;
-    NetName6 = name6;
+void NetInit()
+{
         LinkInit();
          TcpInit();
          Ar4Init();