]> granicus.if.org Git - esp-idf/commitdiff
LWIP AutoIP Compilation Fixed by defining IP_IS_V4_VAL()
authorPiyush Shah <piyush@espressif.com>
Thu, 12 Jul 2018 09:48:51 +0000 (15:18 +0530)
committerPiyush Shah <piyush@espressif.com>
Fri, 13 Jul 2018 09:34:39 +0000 (15:04 +0530)
components/lwip/include/lwip/lwip/ip_addr.h

index 74897a9ee9223fc60ee1eb4453e7715339c4751d..5928f7eb2434dd5a98e943a12c4c170dbacad24a 100644 (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!