lwIP
2.0.2
Lightweight IP stack
|
Macros | |
#define | IPADDR4_INIT(u32val) { { { { u32val, 0ul, 0ul, 0ul } } }, IPADDR_TYPE_V4 } |
#define | IPADDR4_INIT_BYTES(a, b, c, d) IPADDR4_INIT(PP_HTONL(LWIP_MAKEU32(a,b,c,d))) |
#define | IP_IS_V4_VAL(ipaddr) (IP_GET_TYPE(&ipaddr) == IPADDR_TYPE_V4) |
#define | IP_IS_V4(ipaddr) (((ipaddr) == NULL) || IP_IS_V4_VAL(*(ipaddr))) |
#define | ip_2_ip4(ipaddr) (&((ipaddr)->u_addr.ip4)) |
#define | IP_ADDR4(ipaddr, a, b, c, d) |
#define | ip_addr_copy_from_ip4(dest, src) |
#define | ip_addr_set_ip4_u32(ipaddr, val) |
#define | ip_addr_get_ip4_u32(ipaddr) |
#define | IP_ADDR_ANY IP4_ADDR_ANY |
#define | IP4_ADDR_ANY (&ip_addr_any) |
#define | IP4_ADDR_ANY4 (ip_2_ip4(&ip_addr_any)) |
#define | IP_ADDR_BROADCAST (&ip_addr_broadcast) |
#define | IP4_ADDR_BROADCAST (ip_2_ip4(&ip_addr_broadcast)) |
#define IP4_ADDR_ANY (&ip_addr_any) |
Can be used as a fixed/const ip_addr_t for the IPv4 wildcard and the broadcast address
#define IP4_ADDR_ANY4 (ip_2_ip4(&ip_addr_any)) |
Can be used as a fixed/const ip4_addr_t for the wildcard and the broadcast address
#define IP4_ADDR_BROADCAST (ip_2_ip4(&ip_addr_broadcast)) |
#define ip_2_ip4 | ( | ipaddr | ) | (&((ipaddr)->u_addr.ip4)) |
Convert generic ip address to specific protocol version
#define IP_ADDR4 | ( | ipaddr, | |
a, | |||
b, | |||
c, | |||
d | |||
) |
#define IP_ADDR_ANY IP4_ADDR_ANY |
Can be used as a fixed/const ip_addr_t for the IP wildcard. Defined to IP4_ADDR_ANY when IPv4 is enabled. Defined to IP6_ADDR_ANY in IPv6 only systems. Use this if you can handle IPv4 AND IPv6 addresses. Use IP4_ADDR_ANY or IP6_ADDR_ANY when the IP type matters.
#define IP_ADDR_BROADCAST (&ip_addr_broadcast) |
#define ip_addr_copy_from_ip4 | ( | dest, | |
src | |||
) |
#define ip_addr_get_ip4_u32 | ( | ipaddr | ) |
#define ip_addr_set_ip4_u32 | ( | ipaddr, | |
val | |||
) |
#define IP_IS_V4 | ( | ipaddr | ) | (((ipaddr) == NULL) || IP_IS_V4_VAL(*(ipaddr))) |
#define IP_IS_V4_VAL | ( | ipaddr | ) | (IP_GET_TYPE(&ipaddr) == IPADDR_TYPE_V4) |
#define IPADDR4_INIT | ( | u32val | ) | { { { { u32val, 0ul, 0ul, 0ul } } }, IPADDR_TYPE_V4 } |
#define IPADDR4_INIT_BYTES | ( | a, | |
b, | |||
c, | |||
d | |||
) | IPADDR4_INIT(PP_HTONL(LWIP_MAKEU32(a,b,c,d))) |