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@172:9bc3c7b2cca1, 2020-12-16 (annotated)
- Committer:
- andrewboyson
- Date:
- Wed Dec 16 17:33:22 2020 +0000
- Revision:
- 172:9bc3c7b2cca1
- Parent:
- 136:8a65abb0dc63
- Child:
- 195:bd5b123143ca
Modified name resolution to work with both IPv4 and IPv6. Before there were two independent modules.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
andrewboyson | 61:aad055f1b0d1 | 1 | #include <stdint.h> |
andrewboyson | 15:6ca6778168b1 | 2 | |
andrewboyson | 172:9bc3c7b2cca1 | 3 | extern uint16_t EthProtocol; |
andrewboyson | 172:9bc3c7b2cca1 | 4 | |
andrewboyson | 47:73af5c0b0dc2 | 5 | extern void EthProtocolLog(uint16_t prototype); |
andrewboyson | 136:8a65abb0dc63 | 6 | extern int EthHandlePacket (char* pPacketRx, int sizeRx, char* pPacketTx, int* pSizeTx); |
andrewboyson | 136:8a65abb0dc63 | 7 | extern int EthPollForPacketToSend(char* pPacket, int* pSize); |
andrewboyson | 11:c051adb70c5a | 8 | |
andrewboyson | 14:e75a59c1123d | 9 | #define ETHERNET 1 |
andrewboyson | 10:f0854784e960 | 10 | |
andrewboyson | 172:9bc3c7b2cca1 | 11 | #define ETH_NONE 0 |
andrewboyson | 172:9bc3c7b2cca1 | 12 | #define ETH_IPV4 0x0800 |
andrewboyson | 172:9bc3c7b2cca1 | 13 | #define ETH_ARP 0x0806 |
andrewboyson | 172:9bc3c7b2cca1 | 14 | #define ETH_IPV6 0x86DD |
andrewboyson | 10:f0854784e960 | 15 |