mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Removing dependency on PCAP_NETMASK_UNKNOWN to compile with libpcap <
1.1.1.
This commit is contained in:
parent
abcb8e7c95
commit
d29679484d
5 changed files with 28 additions and 13 deletions
|
@ -77,6 +77,12 @@ void PcapSource::OpenLive()
|
|||
props.netmask = 0xffffff00;
|
||||
}
|
||||
|
||||
#ifdef PCAP_NETMASK_UNKNOWN
|
||||
// Defined in libpcap >= 1.1.1
|
||||
if ( props.netmask == PCAP_NETMASK_UNKNOWN )
|
||||
props.netmask = PktSrc::NETMASK_UNKNOWN;
|
||||
#endif
|
||||
|
||||
// We use the smallest time-out possible to return almost immediately if
|
||||
// no packets are available. (We can't use set_nonblocking() as it's
|
||||
// broken on FreeBSD: even when select() indicates that we can read
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue