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:
2021-05-20
Revision:
200:5acbc41bf469
Parent:
195:bd5b123143ca

File content as of revision 200:5acbc41bf469:

#include <stdint.h>

extern uint16_t EthProtocol;
extern char*    EthMacRemote;

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 ETH_NONE 0
#define ETH_IPV4 0x0800
#define ETH_ARP  0x0806
#define ETH_IPV6 0x86DD