make loopif optional

This commit is contained in:
jani 2003-11-14 13:39:05 +00:00
parent de7aab7bc8
commit 91706a08e1
2 changed files with 9 additions and 3 deletions

View File

@ -299,8 +299,10 @@ a lot of data that needs to be copied, this should be set high. */
#define TCP_SNDLOWAT TCP_SND_BUF/2 #define TCP_SNDLOWAT TCP_SND_BUF/2
#endif #endif
/* Support loop interface (127.0.0.1) */
#ifndef LWIP_HAVE_LOOPIF
#define LWIP_HAVE_LOOPIF 1
#endif
#ifndef LWIP_EVENT_API #ifndef LWIP_EVENT_API
#define LWIP_EVENT_API 0 #define LWIP_EVENT_API 0

View File

@ -29,9 +29,12 @@
* Author: Adam Dunkels <adam@sics.se> * Author: Adam Dunkels <adam@sics.se>
* *
*/ */
#include "lwip/mem.h"
#include "lwip/opt.h" #include "lwip/opt.h"
#if LWIP_HAVE_LOOPIF
#include "netif/loopif.h" #include "netif/loopif.h"
#include "lwip/mem.h"
#if defined(LWIP_DEBUG) && defined(LWIP_TCPDUMP) #if defined(LWIP_DEBUG) && defined(LWIP_TCPDUMP)
#include "netif/tcpdump.h" #include "netif/tcpdump.h"
@ -106,6 +109,7 @@ loopif_init(struct netif *netif)
return ERR_OK; return ERR_OK;
} }
#endif /* LWIP_HAVE_LOOPIF */