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
Diff: ip4/ip4addr.h
- Revision:
- 187:122fc1996c86
- Parent:
- 183:ee809769bf89
--- a/ip4/ip4addr.h Sat Jan 16 18:34:32 2021 +0000 +++ b/ip4/ip4addr.h Mon Jan 18 18:23:46 2021 +0000 @@ -1,11 +1,11 @@ -extern int Ip4AddressToString(const uint32_t ip, int size, char* text); -extern int Ip4AddressLog (const uint32_t ip); -extern int Ip4AddressHttp (const uint32_t ip); -extern uint32_t Ip4AddressParse (const char* text); +extern int Ip4AddrToString (const uint32_t ip, int size, char* text); +extern int Ip4AddrLog (const uint32_t ip); +extern int Ip4AddrHttp (const uint32_t ip); +extern uint32_t Ip4AddrParse (const char* text); -extern void Ip4AddressFromDest(const int dest, uint32_t* pDstIp); +extern void Ip4AddrFromDest (const int dest, uint32_t* pDstIp); -extern bool Ip4AddrIsRoutable(uint32_t ip); +extern bool Ip4AddrIsExternal(uint32_t ip); #define IP4_BROADCAST_ADDRESS 0xFFFFFFFF #define IP4_MULTICAST_ALL_HOSTS 0x010000E0