From 1cd2e137c1cf88c54035722d6917fef4fd7c8784 Mon Sep 17 00:00:00 2001 From: Costin Lupu Date: Thu, 12 Sep 2019 12:00:01 +0300 Subject: [PATCH] Enable loopback interface The loopback interface is used in many of the Python 3 unit tests. Signed-off-by: Costin Lupu Reviewed-by: Vlad-Andrei Badoiu --- Config.uk | 6 ++++++ include/lwipopts.h | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/Config.uk b/Config.uk index a0db41d..92df4d3 100644 --- a/Config.uk +++ b/Config.uk @@ -80,6 +80,12 @@ config LWIP_NETIF_STATUS_PRINT help Print netif status changes to standard console +config LWIP_HAVE_LOOPIF + bool "Loopback interface" + default n + help + Enable loopback interface. + config LWIP_IPV4 bool "IPv4 support" default y diff --git a/include/lwipopts.h b/include/lwipopts.h index 559223d..148028d 100644 --- a/include/lwipopts.h +++ b/include/lwipopts.h @@ -95,6 +95,10 @@ void sys_free(void *ptr); #define LWIP_NETIF_EXT_STATUS_CALLBACK 0 #endif /* CONFIG_LWIP_NETIF_EXT_STATUS_CALLBACK */ +#if CONFIG_LWIP_HAVE_LOOPIF +#define LWIP_HAVE_LOOPIF 1 +#endif + /** * ARP options */ -- 2.39.5