zeek/src/packet_analysis/protocol/icmp/ICMP.cc
Tim Wojtulewicz 0c3e3069d0 Added skeletons for TCP/UDP/ICMP packet analysis plugins.
This includes integration into the IP plugin and calling of the sessions code from each plugin.
2021-05-18 11:52:03 -07:00

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;
}