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:
Sat Apr 06 11:20:20 2019 +0000
Revision:
136:8a65abb0dc63
Parent:
107:cc58b4c2090b
Child:
143:8cec8f08dc54
Part way through replacing __packed with byte copy access to the headers.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andrewboyson 49:1a6336f2b3f9 1 extern int Ip6AddressToString(char* ip, int size, char* text);
andrewboyson 49:1a6336f2b3f9 2 extern int Ip6AddressLog (char* ip);
andrewboyson 49:1a6336f2b3f9 3 extern int Ip6AddressHttp (char* ip);
andrewboyson 49:1a6336f2b3f9 4
andrewboyson 107:cc58b4c2090b 5 extern bool Ip6AddressIsSame (const char* ipA, const char* ipB);
andrewboyson 107:cc58b4c2090b 6 extern bool Ip6AddressIsEmpty(const char* ip);
andrewboyson 107:cc58b4c2090b 7 extern void Ip6AddressCopy(char* ipTo, const char* ipFrom);
andrewboyson 49:1a6336f2b3f9 8 extern void Ip6AddressClear(char* ip);
andrewboyson 49:1a6336f2b3f9 9
andrewboyson 136:8a65abb0dc63 10 extern bool Ip6AddrIsSolicited(char* p);
andrewboyson 136:8a65abb0dc63 11 extern bool Ip6AddrIsMulticast(char *p);
andrewboyson 136:8a65abb0dc63 12 extern bool Ip6AddrIsSameGroup(char* pA, char* pB);
andrewboyson 136:8a65abb0dc63 13
andrewboyson 107:cc58b4c2090b 14 extern const char Ip6AddressAllNodes [];
andrewboyson 107:cc58b4c2090b 15 extern const char Ip6AddressAllRouters[];
andrewboyson 107:cc58b4c2090b 16 extern const char Ip6AddressMdns [];
andrewboyson 107:cc58b4c2090b 17 extern const char Ip6AddressLlmnr [];
andrewboyson 107:cc58b4c2090b 18 extern const char Ip6AddressNtp [];
andrewboyson 49:1a6336f2b3f9 19
andrewboyson 49:1a6336f2b3f9 20 extern void Ip6AddressFromDest (int dest , char* pDstIp);
andrewboyson 49:1a6336f2b3f9 21
andrewboyson 49:1a6336f2b3f9 22 #define SCOPE_NONE 0
andrewboyson 49:1a6336f2b3f9 23 #define SCOPE_LOCAL 1
andrewboyson 49:1a6336f2b3f9 24 #define SCOPE_GLOBAL 2