mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Store packet's ip header as unique_ptr
This commit is contained in:
parent
2000f89b12
commit
ecd970ffde
13 changed files with 86 additions and 92 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include "IPAddr.h"
|
||||
#include "PrefixTable.h"
|
||||
|
||||
|
@ -31,7 +32,7 @@ public:
|
|||
bool RemoveDst(Val* dst);
|
||||
|
||||
// Returns true if packet matches a drop filter
|
||||
bool Match(const IP_Hdr* ip, int len, int caplen);
|
||||
bool Match(const std::unique_ptr<IP_Hdr>& ip, int len, int caplen);
|
||||
|
||||
private:
|
||||
struct Filter {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue