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:
10:f0854784e960
Parent:
9:91dae5300a4d
Child:
11:c051adb70c5a
--- a/net.h	Tue Apr 04 10:41:25 2017 +0000
+++ b/net.h	Sun Apr 16 14:21:55 2017 +0000
@@ -9,9 +9,11 @@
 extern uint16_t NetCheckSum(int count, void* pData);
 extern uint16_t NetCheckSumTwo(int count1, void* pData1, int count2, void* pData2);
 
-extern int NetInit();
+extern int NetInit(char* name);
 extern int NetMain();
 
+extern char* NetName;
+
 
 #define ETHERNET  1
 
@@ -26,7 +28,11 @@
 
 
 #define DO_NOTHING       0
-#define UNICAST          1
-#define MULTICAST_NODE   2
-#define MULTICAST_ROUTER 3
-#define BROADCAST        4
+#define   UNICAST        1
+#define   UNICAST_DNS    2
+#define   UNICAST_DHCP   3
+#define MULTICAST_NODE   4
+#define MULTICAST_ROUTER 5
+#define MULTICAST_MDNS   6
+#define MULTICAST_LLMNR  7
+#define BROADCAST        8