mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 07:38:19 +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
|
@ -13,6 +13,15 @@
|
|||
|
||||
using namespace iosource;
|
||||
|
||||
PktSrc::Properties::Properties()
|
||||
{
|
||||
selectable_fd = -1;
|
||||
link_type = -1;
|
||||
hdr_size = -1;
|
||||
netmask = NETMASK_UNKNOWN;
|
||||
is_live = false;
|
||||
}
|
||||
|
||||
PktSrc::PktSrc()
|
||||
{
|
||||
have_packet = false;
|
||||
|
@ -50,7 +59,7 @@ int PktSrc::LinkType() const
|
|||
|
||||
uint32 PktSrc::Netmask() const
|
||||
{
|
||||
return IsOpen() ? props.netmask : PCAP_NETMASK_UNKNOWN;
|
||||
return IsOpen() ? props.netmask : NETMASK_UNKNOWN;
|
||||
}
|
||||
|
||||
bool PktSrc::IsError() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue