mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 07:08:19 +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
|
@ -80,7 +80,7 @@ bool PacketFilter::RemoveDst(Val* dst)
|
|||
return f != nullptr;
|
||||
}
|
||||
|
||||
bool PacketFilter::Match(const IP_Hdr* ip, int len, int caplen)
|
||||
bool PacketFilter::Match(const std::unique_ptr<IP_Hdr>& ip, int len, int caplen)
|
||||
{
|
||||
Filter* f = (Filter*) src_filter.Lookup(ip->SrcAddr(), 128);
|
||||
if ( f )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue