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
user.c@200:5acbc41bf469, 2021-05-20 (annotated)
- Committer:
- andrewboyson
- Date:
- Thu May 20 14:32:52 2021 +0000
- Revision:
- 200:5acbc41bf469
- Parent:
- 195:bd5b123143ca
Increased number of arp entries from 20 to 30 to accommodate the number of WIZ devices plus a few incoming port 80 calls from the internet.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
andrewboyson | 195:bd5b123143ca | 1 | #include <stdint.h> |
andrewboyson | 195:bd5b123143ca | 2 | |
andrewboyson | 195:bd5b123143ca | 3 | uint16_t UserUdpPort1 = 0; |
andrewboyson | 195:bd5b123143ca | 4 | uint16_t UserUdpPort2 = 0; |
andrewboyson | 195:bd5b123143ca | 5 | int (*UserHandleReceivedUdpPacket)(uint16_t port, void (*traceback)(void), int dataLengthRx, char* pDataRx, int* pPataLengthTx, char* pDataTx) = 0; |
andrewboyson | 195:bd5b123143ca | 6 | |
andrewboyson | 195:bd5b123143ca | 7 | |
andrewboyson | 195:bd5b123143ca | 8 | uint16_t UserUdpDstPort = 0; |
andrewboyson | 195:bd5b123143ca | 9 | uint16_t UserUdpSrcPort = 0; |
andrewboyson | 195:bd5b123143ca | 10 | uint32_t UserIp4; |
andrewboyson | 195:bd5b123143ca | 11 | char UserMac[6]; |
andrewboyson | 195:bd5b123143ca | 12 | |
andrewboyson | 195:bd5b123143ca | 13 | int (*UserPollForUdpPacketToSend)(int type, int* pDataLength, char* pData); |