mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 20:18:20 +00:00
18 lines
421 B
C++
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;
|
|
}
|