LWIP AutoIP Compilation Fixed by defining IP_IS_V4_VAL()
This commit is contained in:
parent
ab74be7abe
commit
9da0541020
1 changed files with 1 additions and 0 deletions
|
@ -67,6 +67,7 @@ extern const ip_addr_t ip_addr_any_type;
|
|||
#define IP_IS_ANY_TYPE_VAL(ipaddr) (IP_GET_TYPE(&ipaddr) == IPADDR_TYPE_ANY)
|
||||
#define IPADDR_ANY_TYPE_INIT { { { { 0ul, 0ul, 0ul, 0ul } } }, IPADDR_TYPE_ANY }
|
||||
|
||||
#define IP_IS_V4_VAL(ipaddr) (IP_GET_TYPE(&ipaddr) == IPADDR_TYPE_V4)
|
||||
#define IP_IS_V6_VAL(ipaddr) (IP_GET_TYPE(&ipaddr) == IPADDR_TYPE_V6)
|
||||
#define IP_IS_V6(ipaddr) (((ipaddr) != NULL) && IP_IS_V6_VAL(*(ipaddr)))
|
||||
|
||||
|
|
Loading…
Reference in a new issue