From: Costin Lupu Date: Thu, 12 Sep 2019 09:00:01 +0000 (+0300) Subject: Enable loopback interface X-Git-Tag: RELEASE-0.4~28 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=1cd2e137c1cf88c54035722d6917fef4fd7c8784;p=unikraft%2Flibs%2Flwip.git 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 --- 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 */