mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 07:08:19 +00:00
Move IP and IP tunnel code from Sessions into packet analyzers
This commit is contained in:
parent
69da2d7b1d
commit
1cf251d1ca
53 changed files with 1226 additions and 907 deletions
|
@ -45,7 +45,6 @@ void Packet::Init(int arg_link_type, pkt_timeval *arg_ts, uint32_t arg_caplen,
|
|||
else
|
||||
data = arg_data;
|
||||
|
||||
session_analysis = false;
|
||||
dump_packet = false;
|
||||
|
||||
time = ts.tv_sec + double(ts.tv_usec) / 1e6;
|
||||
|
@ -75,9 +74,9 @@ const IP_Hdr Packet::IP() const
|
|||
return IP_Hdr((struct ip *) (data + hdr_size), false);
|
||||
}
|
||||
|
||||
void Packet::Weird(const char* name)
|
||||
void Packet::Weird(const char* name, const EncapsulationStack* encap)
|
||||
{
|
||||
sessions->Weird(name, this);
|
||||
sessions->Weird(name, this, encap);
|
||||
}
|
||||
|
||||
RecordValPtr Packet::ToRawPktHdrVal() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue