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:
Mon Jan 18 18:23:46 2021 +0000
Revision:
187:122fc1996c86
Parent:
176:7eb916c22084
Child:
193:47a953ab571b
Changed Ip4Address to Ip4Addr.; Moved Ip6AddrIsExternal from NdpNeedsToBeRouted.

Who changed what in which revision?

UserRevisionLine numberNew 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 172:9bc3c7b2cca1 5 extern int Ip6AddrLog (const char* ip);
andrewboyson 172:9bc3c7b2cca1 6 extern int Ip6AddrHttp (const char* ip);
andrewboyson 49:1a6336f2b3f9 7
andrewboyson 176:7eb916c22084 8 extern bool Ip6AddrIsSame (const char* ipA, const char* ipB);
andrewboyson 176:7eb916c22084 9 extern bool Ip6AddrIsEmpty(const char* ip);
andrewboyson 176:7eb916c22084 10 extern void Ip6AddrCopy (char* ipTo, const char* ipFrom);
andrewboyson 176:7eb916c22084 11 extern void Ip6AddrClear (char* ip);
andrewboyson 172:9bc3c7b2cca1 12
andrewboyson 172:9bc3c7b2cca1 13 extern bool Ip6AddrIsLinkLocal (const char* p);
andrewboyson 172:9bc3c7b2cca1 14 extern bool Ip6AddrIsUniqueLocal(const char* p);
andrewboyson 172:9bc3c7b2cca1 15 extern bool Ip6AddrIsGlobal (const char* p);
andrewboyson 187:122fc1996c86 16 extern bool Ip6AddrIsExternal (const char* p);
andrewboyson 172:9bc3c7b2cca1 17 extern bool Ip6AddrIsSolicited (const char* p);
andrewboyson 172:9bc3c7b2cca1 18 extern bool Ip6AddrIsMulticast (const char *p);
andrewboyson 172:9bc3c7b2cca1 19 extern bool Ip6AddrIsSameGroup (const char* pA, const char* pB);
andrewboyson 136:8a65abb0dc63 20
andrewboyson 172:9bc3c7b2cca1 21 extern const char Ip6AddrAllNodes [];
andrewboyson 172:9bc3c7b2cca1 22 extern const char Ip6AddrAllRouters[];
andrewboyson 172:9bc3c7b2cca1 23 extern const char Ip6AddrMdns [];
andrewboyson 172:9bc3c7b2cca1 24 extern const char Ip6AddrLlmnr [];
andrewboyson 172:9bc3c7b2cca1 25 extern const char Ip6AddrNtp [];
andrewboyson 49:1a6336f2b3f9 26
andrewboyson 172:9bc3c7b2cca1 27 extern void Ip6AddrFromDest (int dest , char* pDstIp);
andrewboyson 49:1a6336f2b3f9 28
andrewboyson 172:9bc3c7b2cca1 29 #define SCOPE_NONE 0
andrewboyson 172:9bc3c7b2cca1 30 #define SCOPE_LINK_LOCAL 1
andrewboyson 172:9bc3c7b2cca1 31 #define SCOPE_UNIQUE_LOCAL 2
andrewboyson 172:9bc3c7b2cca1 32 #define SCOPE_GLOBAL 3