Merge branch 'bugfix/autoip_compilation_backportv3.0' into 'release/v3.0'

LWIP AutoIP Compilation Fixed by defining IP_IS_V4_VAL() (backport v3.0)

See merge request idf/esp-idf!3122
This commit is contained in:
Jiang Jiang Jian 2018-08-29 22:54:42 +08:00
commit ef2c0e8b3e

View file

@ -47,6 +47,8 @@ extern "C" {
#define IPADDR_TYPE_V6 6U
#define IPADDR_TYPE_ANY 46U
#define IP_IS_V4_VAL(ipaddr) (IP_GET_TYPE(&ipaddr) == IPADDR_TYPE_V4)
#if LWIP_IPV4 && LWIP_IPV6
/** A union struct for both IP version's addresses.
* ATTENTION: watch out for its size when adding IPv6 address scope!