mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00

This includes integration into the IP plugin and calling of the sessions code from each plugin.
22 lines
544 B
C++
22 lines
544 B
C++
// See the file "COPYING" in the main distribution directory for copyright.
|
|
|
|
#include "zeek/packet_analysis/protocol/icmp/ICMP.h"
|
|
#include "zeek/RunState.h"
|
|
#include "zeek/session/Manager.h"
|
|
|
|
using namespace zeek::packet_analysis::ICMP;
|
|
|
|
ICMPAnalyzer::ICMPAnalyzer()
|
|
: zeek::packet_analysis::Analyzer("ICMP_PKT")
|
|
{
|
|
}
|
|
|
|
ICMPAnalyzer::~ICMPAnalyzer()
|
|
{
|
|
}
|
|
|
|
bool ICMPAnalyzer::AnalyzePacket(size_t len, const uint8_t* data, Packet* packet)
|
|
{
|
|
session_mgr->ProcessTransportLayer(run_state::processing_start_time, packet, len);
|
|
return true;
|
|
}
|