LWIP AutoIP Compilation Fixed by defining IP_IS_V4_VAL()
This commit is contained in:
parent
1b1477d16a
commit
fd8a7666c8
1 changed files with 2 additions and 0 deletions
|
@ -47,6 +47,8 @@ extern "C" {
|
||||||
#define IPADDR_TYPE_V6 6U
|
#define IPADDR_TYPE_V6 6U
|
||||||
#define IPADDR_TYPE_ANY 46U
|
#define IPADDR_TYPE_ANY 46U
|
||||||
|
|
||||||
|
#define IP_IS_V4_VAL(ipaddr) (IP_GET_TYPE(&ipaddr) == IPADDR_TYPE_V4)
|
||||||
|
|
||||||
#if LWIP_IPV4 && LWIP_IPV6
|
#if LWIP_IPV4 && LWIP_IPV6
|
||||||
/** A union struct for both IP version's addresses.
|
/** A union struct for both IP version's addresses.
|
||||||
* ATTENTION: watch out for its size when adding IPv6 address scope!
|
* ATTENTION: watch out for its size when adding IPv6 address scope!
|
||||||
|
|
Loading…
Reference in a new issue