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

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ip4addr.h Source File

ip4addr.h

00001 extern int      Ip4AddrToString  (const uint32_t ip, int size, char* text);
00002 extern int      Ip4AddrLog       (const uint32_t ip);
00003 extern int      Ip4AddrHttp      (const uint32_t ip);
00004 extern uint32_t Ip4AddrParse     (const char* text);
00005 
00006 extern void     Ip4AddrFromDest  (const int dest, uint32_t* pDstIp);
00007 
00008 extern bool     Ip4AddrIsExternal(uint32_t ip);
00009 
00010 #define IP4_BROADCAST_ADDRESS       0xFFFFFFFF
00011 #define IP4_MULTICAST_ALL_HOSTS     0x010000E0
00012 #define IP4_MULTICAST_ALL_ROUTERS   0x020000E0
00013 #define IP4_MULTICAST_DNS_ADDRESS   0xFB0000E0
00014 #define IP4_MULTICAST_LLMNR_ADDRESS 0xFC0000E0
00015 #define IP4_MULTICAST_NTP_ADDRESS   0x010100E0
00016