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

Committer:
andrewboyson
Date:
Sun Sep 29 18:51:58 2019 +0000
Revision:
160:6a1d1d368f80
Parent:
136:8a65abb0dc63
Child:
178:52714fef5ca1
Corrected some minor bugs

Who changed what in which revision?

UserRevisionLine numberNew 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 61:aad055f1b0d1 23 extern void NetInit(const char* name4, const char* name6);
andrewboyson 61:aad055f1b0d1 24 extern void NetMain(void);
andrewboyson 7:b794780e33b4 25
andrewboyson 59:e0e556c8bd46 26 extern const char* NetName4;
andrewboyson 59:e0e556c8bd46 27 extern const char* NetName6;
andrewboyson 97:d91f7db00235 28
andrewboyson 121:bc048b65a630 29 #define FAULT_POINT_NetMain 1
andrewboyson 121:bc048b65a630 30 #define FAULT_POINT_LinkMain 2
andrewboyson 121:bc048b65a630 31 #define FAULT_POINT_EthHandlePacket 3
andrewboyson 121:bc048b65a630 32 #define FAULT_POINT_Ip4HandleReceivedPacket 4
andrewboyson 121:bc048b65a630 33 #define FAULT_POINT_Tcp4HandleReceivedPacket 5
andrewboyson 121:bc048b65a630 34 #define FAULT_POINT_TcpHandleReceivedPacket 6
andrewboyson 121:bc048b65a630 35 #define FAULT_POINT_TcpHdrReadFromPacket 7
andrewboyson 121:bc048b65a630 36 #define FAULT_POINT_HttpHandleRequest 8
andrewboyson 121:bc048b65a630 37 #define FAULT_POINT_HttpReadRequest 9
andrewboyson 121:bc048b65a630 38 #define FAULT_POINT_HttpRequestFunction 10
andrewboyson 126:62edacc9f14d 39 #define FAULT_POINT_HttpPostFunction 11
andrewboyson 126:62edacc9f14d 40 #define FAULT_POINT_HttpGetFunction 12
andrewboyson 126:62edacc9f14d 41 #define FAULT_POINT_Udp4HandleReceivedPacket 13
andrewboyson 126:62edacc9f14d 42 #define FAULT_POINT_UdpHandleReceivedPacket 14
andrewboyson 126:62edacc9f14d 43 #define FAULT_POINT_NtpHandlePacketReceived 15