Removing dependency on PCAP_NETMASK_UNKNOWN to compile with libpcap <

1.1.1.
This commit is contained in:
Robin Sommer 2015-02-20 13:49:33 -08:00
parent abcb8e7c95
commit d29679484d
5 changed files with 28 additions and 13 deletions

View file

@ -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