mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 13:08:20 +00:00
Prep work for IP changes
- Move all of the time handling code out of PktSrc into RunState - Call packet_mgr->ProcessPacket() from various places to setup layer 2 data in packets
This commit is contained in:
parent
5f1ee35d31
commit
69da2d7b1d
10 changed files with 108 additions and 104 deletions
|
@ -30,6 +30,7 @@
|
|||
#include "analyzer/Manager.h"
|
||||
#include "iosource/IOSource.h"
|
||||
#include "iosource/PktDumper.h"
|
||||
#include "packet_analysis/Manager.h"
|
||||
|
||||
#include "pcap.h"
|
||||
|
||||
|
@ -770,6 +771,7 @@ void NetSessions::DoNextInnerPacket(double t, const Packet* pkt,
|
|||
// Construct fake packet for DoNextPacket
|
||||
Packet p;
|
||||
p.Init(DLT_RAW, &ts, caplen, len, data, false, "");
|
||||
packet_mgr->ProcessPacket(&p);
|
||||
|
||||
DoNextPacket(t, &p, inner, outer);
|
||||
|
||||
|
@ -801,6 +803,7 @@ void NetSessions::DoNextInnerPacket(double t, const Packet* pkt,
|
|||
// Construct fake packet for DoNextPacket
|
||||
Packet p;
|
||||
p.Init(link_type, &ts, caplen, len, data, false, "");
|
||||
packet_mgr->ProcessPacket(&p);
|
||||
|
||||
if ( p.l2_valid && (p.l3_proto == L3_IPV4 || p.l3_proto == L3_IPV6) )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue