From b7ef7feaebf9ad3f532c088ea3bc77021c34a69c Mon Sep 17 00:00:00 2001 From: David Cermak Date: Mon, 9 Dec 2019 16:09:26 +0100 Subject: [PATCH] newlib: using lwip implementation of interface name/index conversion Links https://github.com/espressif/esp-idf/issues/3557 --- components/newlib/platform_include/net/if.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/newlib/platform_include/net/if.h b/components/newlib/platform_include/net/if.h index e3d0a601a0..4a60be4772 100644 --- a/components/newlib/platform_include/net/if.h +++ b/components/newlib/platform_include/net/if.h @@ -15,6 +15,7 @@ #define _ESP_PLATFORM_NET_IF_H_ #include "lwip/sockets.h" +#include "lwip/if_api.h" #define MSG_DONTROUTE 0x4 /* send without using routing tables */ #define SOCK_SEQPACKET 5 /* sequenced packet stream */ @@ -22,8 +23,6 @@ #define SOCK_SEQPACKET 5 /* sequenced packet stream */ #define SOMAXCONN 128 -#define IF_NAMESIZE 16 - #define IPV6_UNICAST_HOPS 4 /* int; IP6 hops */ #define NI_MAXHOST 1025