mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-09-22 00:33:46 +08:00
make loopif optional
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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 */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user