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:
14:e75a59c1123d
Parent:
13:9cd54f7db57a
Child:
15:6ca6778168b1
--- a/eth/eth.h	Mon May 01 18:20:55 2017 +0000
+++ b/eth/eth.h	Fri May 05 17:44:16 2017 +0000
@@ -1,6 +1,11 @@
+extern uint16_t EthProtocol;
+extern void     EthProtocolToString(uint16_t protocol, int size, char* text);
+extern int      EthHandlePacket       (void* pPacket, int* pSize);
+extern int      EthPollForPacketToSend(void* pPacket, int* pSize);
 
-extern int  EthHandlePacket       (void* pPacket, int* pSize);
-extern int  EthPollForPacketToSend(void* pPacket, int* pSize);
+#define ETHERNET  1
 
+#define IPV4 0x0800
+#define ARP  0x0806
+#define IPV6 0x86DD
 
-