mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 09:08:20 +00:00
Extend packet analysis test.
This commit is contained in:
parent
3f3f00030d
commit
d51252bb3f
17 changed files with 147 additions and 35 deletions
21
testing/btest/plugins/packet-protocol-plugin/src/LLCDemo.h
Normal file
21
testing/btest/plugins/packet-protocol-plugin/src/LLCDemo.h
Normal file
|
@ -0,0 +1,21 @@
|
|||
#pragma once
|
||||
|
||||
#include <packet_analysis/Analyzer.h>
|
||||
#include <packet_analysis/Component.h>
|
||||
|
||||
namespace zeek::packet_analysis::PacketDemo {
|
||||
|
||||
class LLCDemo : public Analyzer {
|
||||
public:
|
||||
LLCDemo();
|
||||
~LLCDemo() override = default;
|
||||
|
||||
bool AnalyzePacket(size_t len, const uint8_t* data, Packet* packet) override;
|
||||
|
||||
static AnalyzerPtr Instantiate()
|
||||
{
|
||||
return std::make_shared<LLCDemo>();
|
||||
}
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue