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:
2017-10-26
Revision:
47:73af5c0b0dc2
Parent:
42:222a4f45f916
Child:
59:e0e556c8bd46

File content as of revision 47:73af5c0b0dc2:

#include "mbed.h"

extern void EthProtocolLog(uint16_t prototype);
extern int  EthHandlePacket       (void (*traceback)(void), void* pPacket, int* pSize);
extern int  EthPollForPacketToSend(void* pPacket, int* pSize);

#define ETHERNET  1

#define IPV4 0x0800
#define ARP  0x0806
#define IPV6 0x86DD