Skip to content

Commit

Permalink
PCAP_TIMEOUT 0 for Linux caused issues with libpcap>=1.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Koeppe authored and koeppea committed Nov 26, 2019
1 parent fff39fc commit 232b894
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ec_network.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
#include <ifaddrs.h>
#endif

#if defined(OS_BSD_OPEN) || defined(OS_LINUX)
/* LINUX does not care about timeout */
#if defined(OS_BSD_OPEN)
/* OPENBSD needs 0 */
#define PCAP_TIMEOUT 0
#elif defined(OS_SOLARIS)
/* SOLARIS needs > 1 */
#define PCAP_TIMEOUT 10
#else
/* LINUX needs > 0 */
/* FREEBSD needs 1 */
/* MACOSX needs 1 */
#define PCAP_TIMEOUT 1
Expand Down

0 comments on commit 232b894

Please # to comment.