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

ip4/ip4addr.h

Committer:
andrewboyson
Date:
2019-02-22
Revision:
125:8c84daac38ab
Parent:
107:cc58b4c2090b
Child:
176:7eb916c22084

File content as of revision 125:8c84daac38ab:

extern int      Ip4AddressToString(uint32_t ip, int size, char* text);
extern int      Ip4AddressLog     (uint32_t ip);
extern int      Ip4AddressHttp    (uint32_t ip);
extern uint32_t Ip4AddressParse   (char* text);

extern void     Ip4AddressFromDest(int dest, uint32_t* pDstIp);

#define IP4_BROADCAST_ADDRESS       0xFFFFFFFF
#define IP4_MULTICAST_ALL_HOSTS     0x010000E0
#define IP4_MULTICAST_ALL_ROUTERS   0x020000E0
#define IP4_MULTICAST_DNS_ADDRESS   0xFB0000E0
#define IP4_MULTICAST_LLMNR_ADDRESS 0xFC0000E0
#define IP4_MULTICAST_NTP_ADDRESS   0x010100E0