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
net.h@200:5acbc41bf469, 2021-05-20 (annotated)
- Committer:
- andrewboyson
- Date:
- Thu May 20 14:32:52 2021 +0000
- Revision:
- 200:5acbc41bf469
- Parent:
- 178:52714fef5ca1
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 | 61:aad055f1b0d1 | 1 | #include <stdint.h> |
andrewboyson | 61:aad055f1b0d1 | 2 | #include <stdbool.h> |
andrewboyson | 2:849103b5a16d | 3 | |
andrewboyson | 43:bc028d5a6424 | 4 | extern bool NetTraceStack; |
andrewboyson | 43:bc028d5a6424 | 5 | extern bool NetTraceNewLine; |
andrewboyson | 43:bc028d5a6424 | 6 | extern bool NetTraceVerbose; |
andrewboyson | 57:e0fb648acf48 | 7 | extern char NetTraceHost[]; |
andrewboyson | 61:aad055f1b0d1 | 8 | extern bool NetTraceHostGetMatched(void); |
andrewboyson | 61:aad055f1b0d1 | 9 | extern void NetTraceHostResetMatched(void); |
andrewboyson | 57:e0fb648acf48 | 10 | extern void NetTraceHostCheckIp6(char* ip); |
andrewboyson | 57:e0fb648acf48 | 11 | extern void NetTraceHostCheckMac(char* mac); |
andrewboyson | 37:793b39683406 | 12 | |
andrewboyson | 136:8a65abb0dc63 | 13 | extern int16_t NetToHost16(int16_t n); |
andrewboyson | 136:8a65abb0dc63 | 14 | extern int32_t NetToHost32(int32_t n); |
andrewboyson | 136:8a65abb0dc63 | 15 | extern int64_t NetToHost64(int64_t n); |
andrewboyson | 136:8a65abb0dc63 | 16 | extern void NetInvert16(void* h, void* n); |
andrewboyson | 136:8a65abb0dc63 | 17 | extern void NetInvert32(void* h, void* n); |
andrewboyson | 136:8a65abb0dc63 | 18 | extern void NetInvert64(void* h, void* n); |
andrewboyson | 136:8a65abb0dc63 | 19 | extern void NetDirect16(void* h, void* n); |
andrewboyson | 136:8a65abb0dc63 | 20 | extern void NetDirect32(void* h, void* n); |
andrewboyson | 136:8a65abb0dc63 | 21 | extern void NetDirect64(void* h, void* n); |
andrewboyson | 2:849103b5a16d | 22 | |
andrewboyson | 178:52714fef5ca1 | 23 | extern void NetInit(void); |
andrewboyson | 61:aad055f1b0d1 | 24 | extern void NetMain(void); |
andrewboyson | 7:b794780e33b4 | 25 | |
andrewboyson | 121:bc048b65a630 | 26 | #define FAULT_POINT_NetMain 1 |
andrewboyson | 121:bc048b65a630 | 27 | #define FAULT_POINT_LinkMain 2 |
andrewboyson | 121:bc048b65a630 | 28 | #define FAULT_POINT_EthHandlePacket 3 |
andrewboyson | 121:bc048b65a630 | 29 | #define FAULT_POINT_Ip4HandleReceivedPacket 4 |
andrewboyson | 121:bc048b65a630 | 30 | #define FAULT_POINT_Tcp4HandleReceivedPacket 5 |
andrewboyson | 121:bc048b65a630 | 31 | #define FAULT_POINT_TcpHandleReceivedPacket 6 |
andrewboyson | 121:bc048b65a630 | 32 | #define FAULT_POINT_TcpHdrReadFromPacket 7 |
andrewboyson | 121:bc048b65a630 | 33 | #define FAULT_POINT_HttpHandleRequest 8 |
andrewboyson | 121:bc048b65a630 | 34 | #define FAULT_POINT_HttpReadRequest 9 |
andrewboyson | 121:bc048b65a630 | 35 | #define FAULT_POINT_HttpRequestFunction 10 |
andrewboyson | 126:62edacc9f14d | 36 | #define FAULT_POINT_HttpPostFunction 11 |
andrewboyson | 126:62edacc9f14d | 37 | #define FAULT_POINT_HttpGetFunction 12 |
andrewboyson | 126:62edacc9f14d | 38 | #define FAULT_POINT_Udp4HandleReceivedPacket 13 |
andrewboyson | 126:62edacc9f14d | 39 | #define FAULT_POINT_UdpHandleReceivedPacket 14 |
andrewboyson | 126:62edacc9f14d | 40 | #define FAULT_POINT_NtpHandlePacketReceived 15 |