mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +00:00
20 lines
504 B
C++
20 lines
504 B
C++
// See the file "COPYING" in the main distribution directory for copyright.
|
|
|
|
#include "IPv6.h"
|
|
|
|
using namespace zeek::packet_analysis::IPv6;
|
|
|
|
IPv6Analyzer::IPv6Analyzer()
|
|
: zeek::packet_analysis::Analyzer("IPv6")
|
|
{
|
|
}
|
|
|
|
zeek::packet_analysis::AnalyzerResult IPv6Analyzer::AnalyzePacket(size_t len,
|
|
const uint8_t* data, Packet* packet)
|
|
{
|
|
packet->l3_proto = L3_IPV6;
|
|
packet->hdr_size = static_cast<uint32_t>(data - packet->data);
|
|
|
|
// Leave packet analyzer land
|
|
return AnalyzerResult::Terminate;
|
|
}
|