mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
23 lines
539 B
C++
23 lines
539 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::MPLS {
|
|
|
|
class MPLSAnalyzer : public zeek::packet_analysis::Analyzer {
|
|
public:
|
|
MPLSAnalyzer();
|
|
~MPLSAnalyzer() override = default;
|
|
|
|
AnalyzerResult AnalyzePacket(size_t len, const uint8_t* data, Packet* packet) override;
|
|
|
|
static zeek::packet_analysis::AnalyzerPtr Instantiate()
|
|
{
|
|
return std::make_shared<MPLSAnalyzer>();
|
|
}
|
|
};
|
|
|
|
}
|