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

eth/eth.h

Committer:
andrewboyson
Date:
2019-07-19
Revision:
151:bde6f7da1755
Parent:
136:8a65abb0dc63
Child:
172:9bc3c7b2cca1

File content as of revision 151:bde6f7da1755:

#include <stdint.h>

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