mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22:58:20 +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
|
@ -3,6 +3,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <sys/types.h> // for u_char
|
||||
#include <memory>
|
||||
|
||||
#include "IntrusivePtr.h"
|
||||
|
||||
|
@ -22,7 +23,7 @@ public:
|
|||
|
||||
bool IsActive();
|
||||
|
||||
bool NextPacket(const IP_Hdr* ip, int len, int caplen);
|
||||
bool NextPacket(const std::unique_ptr<IP_Hdr>& ip, int len, int caplen);
|
||||
|
||||
protected:
|
||||
Val* BuildData(const u_char* data, int hdrlen, int len, int caplen);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue