mirror of
https://github.com/solemnwarning/ipxwrapper
synced 2024-12-30 16:45:37 +01:00
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.
This commit is contained in:
parent
ecda2ba0a4
commit
4694ce8850
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user