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@171:f708d6776752, 2020-12-12 (annotated)
- Committer:
- andrewboyson
- Date:
- Sat Dec 12 20:10:02 2020 +0000
- Revision:
- 171:f708d6776752
- Parent:
- 143:8cec8f08dc54
- Child:
- 172:9bc3c7b2cca1
Modified NR to accept both IPV6 and IPV4 addresses instead of having two modules with diffrent address lengths. Encapsulated 32but address into lsb 128 bit address
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
andrewboyson | 171:f708d6776752 | 1 | #include <stdint.h> |
andrewboyson | 171:f708d6776752 | 2 | |
andrewboyson | 143:8cec8f08dc54 | 3 | extern int Ip6AddressToString(const char* ip, int size, char* text); |
andrewboyson | 143:8cec8f08dc54 | 4 | extern int Ip6AddressLog (const char* ip); |
andrewboyson | 143:8cec8f08dc54 | 5 | extern int Ip6AddressHttp (const char* ip); |
andrewboyson | 49:1a6336f2b3f9 | 6 | |
andrewboyson | 171:f708d6776752 | 7 | extern bool Ip6AddressIsSame (const char* ipA, const char* ipB); |
andrewboyson | 171:f708d6776752 | 8 | extern bool Ip6AddressIsEmpty(const char* ip); |
andrewboyson | 171:f708d6776752 | 9 | extern void Ip6AddressCopy (char* ipTo, const char* ipFrom); |
andrewboyson | 171:f708d6776752 | 10 | extern void Ip6AddressClear (char* ip); |
andrewboyson | 171:f708d6776752 | 11 | extern void Ip6AddressFromIp4(char* ip6, uint32_t ip4); |
andrewboyson | 171:f708d6776752 | 12 | extern uint32_t Ip6AddressToIp4 (char* ip6); |
andrewboyson | 49:1a6336f2b3f9 | 13 | |
andrewboyson | 143:8cec8f08dc54 | 14 | extern bool Ip6AddrIsSolicited(const char* p); |
andrewboyson | 143:8cec8f08dc54 | 15 | extern bool Ip6AddrIsMulticast(const char *p); |
andrewboyson | 143:8cec8f08dc54 | 16 | extern bool Ip6AddrIsSameGroup(const char* pA, const char* pB); |
andrewboyson | 171:f708d6776752 | 17 | extern bool Ip6AddrIsIp4 (const char *p); |
andrewboyson | 136:8a65abb0dc63 | 18 | |
andrewboyson | 107:cc58b4c2090b | 19 | extern const char Ip6AddressAllNodes []; |
andrewboyson | 107:cc58b4c2090b | 20 | extern const char Ip6AddressAllRouters[]; |
andrewboyson | 107:cc58b4c2090b | 21 | extern const char Ip6AddressMdns []; |
andrewboyson | 107:cc58b4c2090b | 22 | extern const char Ip6AddressLlmnr []; |
andrewboyson | 107:cc58b4c2090b | 23 | extern const char Ip6AddressNtp []; |
andrewboyson | 49:1a6336f2b3f9 | 24 | |
andrewboyson | 49:1a6336f2b3f9 | 25 | extern void Ip6AddressFromDest (int dest , char* pDstIp); |
andrewboyson | 49:1a6336f2b3f9 | 26 | |
andrewboyson | 49:1a6336f2b3f9 | 27 | #define SCOPE_NONE 0 |
andrewboyson | 49:1a6336f2b3f9 | 28 | #define SCOPE_LOCAL 1 |
andrewboyson | 49:1a6336f2b3f9 | 29 | #define SCOPE_GLOBAL 2 |