From 4694ce8850c63d693870f08363e3479a82d90186 Mon Sep 17 00:00:00 2001 From: Daniel Collins Date: Sun, 20 Apr 2014 17:23:44 +0100 Subject: [PATCH] Use correct WinPcap timeout value. A timeout of zero is infinite, so was blocking for traffic on interfaces that didn't have any in the router main loop. --- src/interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interface.c b/src/interface.c index 55218fa..5ff136b 100644 --- a/src/interface.c +++ b/src/interface.c @@ -414,7 +414,7 @@ static void _init_pcap_interfaces(void) } char errbuf[PCAP_ERRBUF_SIZE]; - pcap_t *pcap = pcap_open(i->name, ETHERNET_MTU, PCAP_OPENFLAG_MAX_RESPONSIVENESS, 0, NULL, errbuf); + pcap_t *pcap = pcap_open(i->name, ETHERNET_MTU, PCAP_OPENFLAG_MAX_RESPONSIVENESS, -1, NULL, errbuf); if(!pcap) { log_printf(LOG_ERROR, "Could not open WinPcap interface '%s': %s", i->name, errbuf);