mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 00:58:19 +00:00
A set of various fixes and smaller API tweaks, plus tests.
Also moving PCAP-related bifs to iosource/pcap.bif.
This commit is contained in:
parent
ce9f16490c
commit
5f817513d0
34 changed files with 395 additions and 164 deletions
|
@ -9,7 +9,7 @@
|
|||
#include <pcap-int.h>
|
||||
#endif
|
||||
|
||||
using namespace iosource::pktsrc;
|
||||
using namespace iosource::pcap;
|
||||
|
||||
PcapSource::~PcapSource()
|
||||
{
|
||||
|
@ -182,7 +182,7 @@ void PcapSource::DoneWithPacket(Packet* pkt)
|
|||
|
||||
int PcapSource::PrecompileFilter(int index, const std::string& filter)
|
||||
{
|
||||
return PktSrc::PrecompileBPFFilter(index, filter).
|
||||
return PktSrc::PrecompileBPFFilter(index, filter);
|
||||
}
|
||||
|
||||
int PcapSource::SetFilter(int index)
|
||||
|
@ -192,7 +192,7 @@ int PcapSource::SetFilter(int index)
|
|||
|
||||
char errbuf[PCAP_ERRBUF_SIZE];
|
||||
|
||||
BPF_Program* code = GetFilter(index);
|
||||
BPF_Program* code = GetBPFFilter(index);
|
||||
|
||||
if ( ! code )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue