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:
172:9bc3c7b2cca1
Parent:
136:8a65abb0dc63
Child:
195:bd5b123143ca
diff -r f708d6776752 -r 9bc3c7b2cca1 eth/eth.h
--- a/eth/eth.h	Sat Dec 12 20:10:02 2020 +0000
+++ b/eth/eth.h	Wed Dec 16 17:33:22 2020 +0000
@@ -1,12 +1,15 @@
 #include <stdint.h>
 
+extern uint16_t EthProtocol;
+
 extern void EthProtocolLog(uint16_t prototype);
 extern int  EthHandlePacket       (char* pPacketRx, int sizeRx, char* pPacketTx, int* pSizeTx);
 extern int  EthPollForPacketToSend(char* pPacket, int* pSize);
 
 #define ETHERNET  1
 
-#define IPV4 0x0800
-#define ARP  0x0806
-#define IPV6 0x86DD
+#define ETH_NONE 0
+#define ETH_IPV4 0x0800
+#define ETH_ARP  0x0806
+#define ETH_IPV6 0x86DD