]> xenbits.xensource.com Git - unikraft/libs/lwip.git/commitdiff
Enable loopback interface
authorCostin Lupu <costin.lupu@cs.pub.ro>
Thu, 12 Sep 2019 09:00:01 +0000 (12:00 +0300)
committerCostin Lupu <costin.lup@gmail.com>
Tue, 17 Sep 2019 06:46:11 +0000 (09:46 +0300)
The loopback interface is used in many of the Python 3 unit tests.

Signed-off-by: Costin Lupu <costin.lupu@cs.pub.ro>
Reviewed-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@stud.acs.upb.ro>
Config.uk
include/lwipopts.h

index a0db41dd0a623c60b58ef6b97edf3968d5134c9f..92df4d308033bf5049314255385121d4e2459199 100644 (file)
--- 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
index 559223d50d670c32dc9f6bab2e71f5a69c8dbfb7..148028d6a7a72f813eb87b348ae83cb92e7e2b43 100644 (file)
@@ -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
  */