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

23 lines
499 B
C++

// See the file "COPYING" in the main distribution directory for copyright.
#pragma once
#include <packet_analysis/Analyzer.h>
#include <packet_analysis/Component.h>
namespace zeek::packet_analysis::IPv4 {
class IPv4Analyzer : public Analyzer {
public:
IPv4Analyzer();
~IPv4Analyzer() override = default;
AnalyzerResult Analyze(Packet* packet, const uint8_t*& data) override;
static zeek::packet_analysis::AnalyzerPtr Instantiate()
{
return std::make_shared<IPv4Analyzer>();
}
};
}