Added support for new loopback code in win32 port

This commit is contained in:
goldsimon 2008-06-17 19:43:34 +00:00
parent f044a46228
commit e0667a84c0
2 changed files with 6 additions and 0 deletions

View File

@ -43,6 +43,8 @@
#define LWIP_DNS 1
#define LWIP_HAVE_LOOPIF 1
#define LWIP_NETIF_LOOPBACK 1
#define LWIP_LOOPBACK_MAX_PBUFS 10
#define TCP_LISTEN_BACKLOG 0

View File

@ -428,6 +428,10 @@ void main_loop()
/* check for packets and link status*/
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... */