From fd8a7666c863ea0ddb03dc1b6f83265632a8c67c Mon Sep 17 00:00:00 2001 From: Piyush Shah Date: Thu, 12 Jul 2018 15:18:51 +0530 Subject: [PATCH] LWIP AutoIP Compilation Fixed by defining IP_IS_V4_VAL() --- components/lwip/include/lwip/lwip/ip_addr.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/lwip/include/lwip/lwip/ip_addr.h b/components/lwip/include/lwip/lwip/ip_addr.h index 74897a9ee..5928f7eb2 100644 --- a/components/lwip/include/lwip/lwip/ip_addr.h +++ b/components/lwip/include/lwip/lwip/ip_addr.h @@ -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!