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:
136:8a65abb0dc63
Parent:
126:62edacc9f14d
Child:
178:52714fef5ca1
--- a/net.h	Sat Mar 23 12:25:48 2019 +0000
+++ b/net.h	Sat Apr 06 11:20:20 2019 +0000
@@ -10,11 +10,15 @@
 extern void NetTraceHostCheckIp6(char* ip);
 extern void NetTraceHostCheckMac(char* mac);
 
-extern  int16_t NetToHost16(int16_t n);
-extern  int32_t NetToHost32(int32_t n);
-extern  int64_t NetToHost64(int64_t n);
-extern uint16_t NetCheckSum(int count, void* pData);
-extern uint16_t NetCheckSumTwo(int count1, void* pData1, int count2, void* pData2);
+extern int16_t NetToHost16(int16_t n);
+extern int32_t NetToHost32(int32_t n);
+extern int64_t NetToHost64(int64_t n);
+extern void    NetInvert16(void* h, void* n);
+extern void    NetInvert32(void* h, void* n);
+extern void    NetInvert64(void* h, void* n);
+extern void    NetDirect16(void* h, void* n);
+extern void    NetDirect32(void* h, void* n);
+extern void    NetDirect64(void* h, void* n);
 
 extern void NetInit(const char* name4, const char* name6);
 extern void NetMain(void);