|
#define | IP_ADDR_ANY ((ip_addr_t *)&ip_addr_any) |
|
#define | IP_ADDR_BROADCAST ((ip_addr_t *)&ip_addr_broadcast) |
|
#define | IPADDR_NONE ((u32_t)0xffffffffUL) |
|
#define | IPADDR_LOOPBACK ((u32_t)0x7f000001UL) |
|
#define | IPADDR_ANY ((u32_t)0x00000000UL) |
|
#define | IPADDR_BROADCAST ((u32_t)0xffffffffUL) |
|
#define | IP_CLASSA(a) ((((u32_t)(a)) & 0x80000000UL) == 0) |
|
#define | IP_CLASSA_NET 0xff000000 |
|
#define | IP_CLASSA_NSHIFT 24 |
|
#define | IP_CLASSA_HOST (0xffffffff & ~IP_CLASSA_NET) |
|
#define | IP_CLASSA_MAX 128 |
|
#define | IP_CLASSB(a) ((((u32_t)(a)) & 0xc0000000UL) == 0x80000000UL) |
|
#define | IP_CLASSB_NET 0xffff0000 |
|
#define | IP_CLASSB_NSHIFT 16 |
|
#define | IP_CLASSB_HOST (0xffffffff & ~IP_CLASSB_NET) |
|
#define | IP_CLASSB_MAX 65536 |
|
#define | IP_CLASSC(a) ((((u32_t)(a)) & 0xe0000000UL) == 0xc0000000UL) |
|
#define | IP_CLASSC_NET 0xffffff00 |
|
#define | IP_CLASSC_NSHIFT 8 |
|
#define | IP_CLASSC_HOST (0xffffffff & ~IP_CLASSC_NET) |
|
#define | IP_CLASSD(a) (((u32_t)(a) & 0xf0000000UL) == 0xe0000000UL) |
|
#define | IP_CLASSD_NET 0xf0000000 /* These ones aren't really */ |
|
#define | IP_CLASSD_NSHIFT 28 /* net and host fields, but */ |
|
#define | IP_CLASSD_HOST 0x0fffffff /* routing needn't know. */ |
|
#define | IP_MULTICAST(a) IP_CLASSD(a) |
|
#define | IP_EXPERIMENTAL(a) (((u32_t)(a) & 0xf0000000UL) == 0xf0000000UL) |
|
#define | IP_BADCLASS(a) (((u32_t)(a) & 0xf0000000UL) == 0xf0000000UL) |
|
#define | IP_LOOPBACKNET 127 /* official! */ |
|
#define | IP4_ADDR(ipaddr, a, b, c, d) |
|
#define | IPADDR2_COPY(dest, src) SMEMCPY(dest, src, sizeof(ip_addr_t)) |
|
#define | ip_addr_copy(dest, src) ((dest).addr = (src).addr) |
|
#define | ip_addr_set(dest, src) |
|
#define | ip_addr_set_zero(ipaddr) ((ipaddr)->addr = 0) |
|
#define | ip_addr_set_any(ipaddr) ((ipaddr)->addr = IPADDR_ANY) |
|
#define | ip_addr_set_loopback(ipaddr) ((ipaddr)->addr = PP_HTONL(IPADDR_LOOPBACK)) |
|
#define | ip_addr_set_hton(dest, src) |
|
#define | ip4_addr_set_u32(dest_ipaddr, src_u32) ((dest_ipaddr)->addr = (src_u32)) |
|
#define | ip4_addr_get_u32(src_ipaddr) ((src_ipaddr)->addr) |
|
#define | ip_addr_get_network(target, host, netmask) ((target)->addr = ((host)->addr) & ((netmask)->addr)) |
|
#define | ip_addr_netcmp(addr1, addr2, mask) |
|
#define | ip_addr_cmp(addr1, addr2) ((addr1)->addr == (addr2)->addr) |
|
#define | ip_addr_isany(addr1) ((addr1) == NULL || (addr1)->addr == IPADDR_ANY) |
|
#define | ip_addr_isbroadcast(ipaddr, netif) ip4_addr_isbroadcast((ipaddr)->addr, (netif)) |
|
#define | ip_addr_netmask_valid(netmask) ip4_addr_netmask_valid((netmask)->addr) |
|
#define | ip_addr_ismulticast(addr1) (((addr1)->addr & PP_HTONL(0xf0000000UL)) == PP_HTONL(0xe0000000UL)) |
|
#define | ip_addr_islinklocal(addr1) (((addr1)->addr & PP_HTONL(0xffff0000UL)) == PP_HTONL(0xa9fe0000UL)) |
|
#define | ip_addr_debug_print(debug, ipaddr) |
|
#define | ip4_addr1(ipaddr) (((u8_t*)(ipaddr))[0]) |
|
#define | ip4_addr2(ipaddr) (((u8_t*)(ipaddr))[1]) |
|
#define | ip4_addr3(ipaddr) (((u8_t*)(ipaddr))[2]) |
|
#define | ip4_addr4(ipaddr) (((u8_t*)(ipaddr))[3]) |
|
#define | ip4_addr1_16(ipaddr) ((u16_t)ip4_addr1(ipaddr)) |
|
#define | ip4_addr2_16(ipaddr) ((u16_t)ip4_addr2(ipaddr)) |
|
#define | ip4_addr3_16(ipaddr) ((u16_t)ip4_addr3(ipaddr)) |
|
#define | ip4_addr4_16(ipaddr) ((u16_t)ip4_addr4(ipaddr)) |
|
#define | ip_ntoa(ipaddr) ipaddr_ntoa(ipaddr) |
|