mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 00:28:21 +00:00
Moving some of the BPF filtering code into base class.
This will allow packet sources that don't support BPF natively to emulate the filtering via libpcap.
This commit is contained in:
parent
0186061aa8
commit
ce9f16490c
8 changed files with 110 additions and 85 deletions
|
@ -4,10 +4,6 @@
|
|||
#define IOSOURCE_PKTSRC_PCAP_SOURCE_H
|
||||
|
||||
#include "../PktSrc.h"
|
||||
#include "BPF_Program.h"
|
||||
#include "Dict.h"
|
||||
|
||||
declare(PDict,BPF_Program);
|
||||
|
||||
namespace iosource {
|
||||
namespace pktsrc {
|
||||
|
@ -42,8 +38,6 @@ private:
|
|||
Stats stats;
|
||||
|
||||
pcap_t *pd;
|
||||
uint32 netmask;
|
||||
PDict(BPF_Program) filters;
|
||||
|
||||
struct pcap_pkthdr current_hdr;
|
||||
struct pcap_pkthdr last_hdr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue