mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 23:28:20 +00:00
Change Packet::ip_hdr to be a shared_ptr so it can be copied into EncapsulatingConn
This commit is contained in:
parent
d4f57a6100
commit
ed798c6aba
24 changed files with 91 additions and 42 deletions
|
@ -82,7 +82,7 @@ bool PacketFilter::RemoveDst(Val* dst)
|
|||
return f != nullptr;
|
||||
}
|
||||
|
||||
bool PacketFilter::Match(const std::unique_ptr<IP_Hdr>& ip, int len, int caplen)
|
||||
bool PacketFilter::Match(const std::shared_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