mirror of
https://github.com/ep00ch/lwip-contrib-mac.git
synced 2024-07-17 08:28:56 +00:00
Added support for new loopback code in win32 port
This commit is contained in:
parent
f044a46228
commit
e0667a84c0
@ -43,6 +43,8 @@
|
|||||||
#define LWIP_DNS 1
|
#define LWIP_DNS 1
|
||||||
|
|
||||||
#define LWIP_HAVE_LOOPIF 1
|
#define LWIP_HAVE_LOOPIF 1
|
||||||
|
#define LWIP_NETIF_LOOPBACK 1
|
||||||
|
#define LWIP_LOOPBACK_MAX_PBUFS 10
|
||||||
|
|
||||||
#define TCP_LISTEN_BACKLOG 0
|
#define TCP_LISTEN_BACKLOG 0
|
||||||
|
|
||||||
|
@ -428,6 +428,10 @@ void main_loop()
|
|||||||
|
|
||||||
/* check for packets and link status*/
|
/* check for packets and link status*/
|
||||||
ethernetif_poll(&netif);
|
ethernetif_poll(&netif);
|
||||||
|
#if !LWIP_NETIF_LOOPBACK_MULTITHREADING
|
||||||
|
/* check for loopback packets on all netifs */
|
||||||
|
netif_poll_all();
|
||||||
|
#endif /* !LWIP_NETIF_LOOPBACK_MULTITHREADING */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* release the pcap library... */
|
/* release the pcap library... */
|
||||||
|
Loading…
Reference in New Issue
Block a user