zeek/src/packet_analysis/protocol/ipv4/IPv4.cc
Jan Grashoefer 9feda100b9 Move dispatching into packet analyzers.
WIP that updates only the Ethernet analyzer.
2020-09-23 11:13:28 -07:00

18 lines
421 B
C++

// See the file "COPYING" in the main distribution directory for copyright.
#include "IPv4.h"
using namespace zeek::packet_analysis::IPv4;
IPv4Analyzer::IPv4Analyzer()
: zeek::packet_analysis::Analyzer("IPv4")
{
}
zeek::packet_analysis::AnalyzerResult IPv4Analyzer::Analyze(Packet* packet, const uint8_t*& data)
{
packet->l3_proto = L3_IPV4;
// Leave packet analyzer land
return AnalyzerResult::Terminate;
}