mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 23:28:20 +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
|
@ -162,22 +162,7 @@ void PktSrc::Process()
|
|||
if ( ! ExtractNextPacketInternal() )
|
||||
return;
|
||||
|
||||
// This is set here to avoid having to pass the packet source down into the processing
|
||||
// methods unnecessarily.
|
||||
run_state::detail::current_iosrc = this;
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
run_state::detail::current_pktsrc = this;
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
packet_mgr->ProcessPacket(¤t_packet);
|
||||
run_state::detail::dispatch_packet(¤t_packet);
|
||||
|
||||
run_state::detail::current_iosrc = nullptr;
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
run_state::detail::current_pktsrc = nullptr;
|
||||
#pragma GCC diagnostic pop
|
||||
run_state::detail::dispatch_packet(¤t_packet, this);
|
||||
|
||||
have_packet = false;
|
||||
DoneWithPacket();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue