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
ip6/ip6addr.h@200:5acbc41bf469, 2021-05-20 (annotated)
- Committer:
- andrewboyson
- Date:
- Thu May 20 14:32:52 2021 +0000
- Revision:
- 200:5acbc41bf469
- Parent:
- 193:47a953ab571b
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 | 171:f708d6776752 | 1 | #include <stdint.h> |
andrewboyson | 176:7eb916c22084 | 2 | #include <stdbool.h> |
andrewboyson | 171:f708d6776752 | 3 | |
andrewboyson | 172:9bc3c7b2cca1 | 4 | extern int Ip6AddrToString(const char* ip, int size, char* text); |
andrewboyson | 193:47a953ab571b | 5 | extern void Ip6AddrParse (const char *ip, char *address); |
andrewboyson | 172:9bc3c7b2cca1 | 6 | extern int Ip6AddrLog (const char* ip); |
andrewboyson | 172:9bc3c7b2cca1 | 7 | extern int Ip6AddrHttp (const char* ip); |
andrewboyson | 49:1a6336f2b3f9 | 8 | |
andrewboyson | 176:7eb916c22084 | 9 | extern bool Ip6AddrIsSame (const char* ipA, const char* ipB); |
andrewboyson | 176:7eb916c22084 | 10 | extern bool Ip6AddrIsEmpty(const char* ip); |
andrewboyson | 176:7eb916c22084 | 11 | extern void Ip6AddrCopy (char* ipTo, const char* ipFrom); |
andrewboyson | 176:7eb916c22084 | 12 | extern void Ip6AddrClear (char* ip); |
andrewboyson | 172:9bc3c7b2cca1 | 13 | |
andrewboyson | 172:9bc3c7b2cca1 | 14 | extern bool Ip6AddrIsLinkLocal (const char* p); |
andrewboyson | 172:9bc3c7b2cca1 | 15 | extern bool Ip6AddrIsUniqueLocal(const char* p); |
andrewboyson | 172:9bc3c7b2cca1 | 16 | extern bool Ip6AddrIsGlobal (const char* p); |
andrewboyson | 187:122fc1996c86 | 17 | extern bool Ip6AddrIsExternal (const char* p); |
andrewboyson | 172:9bc3c7b2cca1 | 18 | extern bool Ip6AddrIsSolicited (const char* p); |
andrewboyson | 172:9bc3c7b2cca1 | 19 | extern bool Ip6AddrIsMulticast (const char *p); |
andrewboyson | 172:9bc3c7b2cca1 | 20 | extern bool Ip6AddrIsSameGroup (const char* pA, const char* pB); |
andrewboyson | 136:8a65abb0dc63 | 21 | |
andrewboyson | 172:9bc3c7b2cca1 | 22 | extern const char Ip6AddrAllNodes []; |
andrewboyson | 172:9bc3c7b2cca1 | 23 | extern const char Ip6AddrAllRouters[]; |
andrewboyson | 172:9bc3c7b2cca1 | 24 | extern const char Ip6AddrMdns []; |
andrewboyson | 172:9bc3c7b2cca1 | 25 | extern const char Ip6AddrLlmnr []; |
andrewboyson | 172:9bc3c7b2cca1 | 26 | extern const char Ip6AddrNtp []; |
andrewboyson | 49:1a6336f2b3f9 | 27 | |
andrewboyson | 172:9bc3c7b2cca1 | 28 | extern void Ip6AddrFromDest (int dest , char* pDstIp); |
andrewboyson | 49:1a6336f2b3f9 | 29 | |
andrewboyson | 172:9bc3c7b2cca1 | 30 | #define SCOPE_NONE 0 |
andrewboyson | 172:9bc3c7b2cca1 | 31 | #define SCOPE_LINK_LOCAL 1 |
andrewboyson | 172:9bc3c7b2cca1 | 32 | #define SCOPE_UNIQUE_LOCAL 2 |
andrewboyson | 172:9bc3c7b2cca1 | 33 | #define SCOPE_GLOBAL 3 |