mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 01:58:20 +00:00
Review cleanup
This commit is contained in:
parent
89a9c96673
commit
a7d4364334
11 changed files with 88 additions and 41 deletions
|
@ -37,7 +37,7 @@ void Manager::InitPostScript()
|
|||
|
||||
root_analyzer = analyzers["Root"];
|
||||
|
||||
static auto pkt_profile_file = id::find_val("pkt_profile_file");
|
||||
auto pkt_profile_file = id::find_val("pkt_profile_file");
|
||||
|
||||
if ( detail::pkt_profile_mode && detail::pkt_profile_freq > 0 && pkt_profile_file )
|
||||
pkt_profiler = new detail::PacketProfiler(detail::pkt_profile_mode,
|
||||
|
|
|
@ -93,7 +93,7 @@ bool IPAnalyzer::AnalyzePacket(size_t len, const uint8_t* data, Packet* packet)
|
|||
|
||||
if ( packet->len < total_len + packet->hdr_size )
|
||||
{
|
||||
packet->Weird("truncated_IP", encapsulation);
|
||||
packet->Weird("truncated_IPv6", encapsulation);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -246,6 +246,8 @@ bool IPAnalyzer::AnalyzePacket(size_t len, const uint8_t* data, Packet* packet)
|
|||
case IPPROTO_UDP:
|
||||
case IPPROTO_ICMP:
|
||||
case IPPROTO_ICMPV6:
|
||||
DBG_LOG(DBG_PACKET_ANALYSIS, "Analysis in %s succeeded, next layer identifier is %#x.",
|
||||
GetAnalyzerName(), proto);
|
||||
sessions->DoNextPacket(run_state::processing_start_time, packet, ip_hdr, encapsulation);
|
||||
break;
|
||||
case IPPROTO_NONE:
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <packet_analysis/Analyzer.h>
|
||||
#include <packet_analysis/Component.h>
|
||||
#include "zeek/packet_analysis/Analyzer.h"
|
||||
#include "zeek/packet_analysis/Component.h"
|
||||
#include "zeek/IPAddr.h"
|
||||
#include "zeek/TunnelEncapsulation.h"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue