mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 08:38:20 +00:00
Use better data structure for storing BPF filters.
This commit is contained in:
parent
17bc615467
commit
c22a6f67d2
3 changed files with 22 additions and 16 deletions
|
@ -3,6 +3,8 @@
|
|||
#ifndef IOSOURCE_PKTSRC_PKTSRC_H
|
||||
#define IOSOURCE_PKTSRC_PKTSRC_H
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include "IOSource.h"
|
||||
#include "BPF_Program.h"
|
||||
#include "Dict.h"
|
||||
|
@ -362,7 +364,7 @@ private:
|
|||
Packet current_packet;
|
||||
|
||||
// For BPF filtering support.
|
||||
PDict(BPF_Program) filters;
|
||||
std::vector<BPF_Program *> filters;
|
||||
|
||||
// Only set in pseudo-realtime mode.
|
||||
double first_timestamp;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue