mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 23:58: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
|
@ -1,7 +1,8 @@
|
|||
#include "Plugin.h"
|
||||
#include "packet_analysis/Component.h"
|
||||
|
||||
#include "Bar.h"
|
||||
#include "RawLayer.h"
|
||||
#include "LLCDemo.h"
|
||||
|
||||
namespace zeek::plugin::PacketDemo_Bar {
|
||||
|
||||
|
@ -9,12 +10,14 @@ class Plugin : public zeek::plugin::Plugin {
|
|||
public:
|
||||
zeek::plugin::Configuration Configure()
|
||||
{
|
||||
AddComponent(new zeek::packet_analysis::Component("Bar",
|
||||
zeek::packet_analysis::PacketDemo::Bar::Instantiate));
|
||||
AddComponent(new zeek::packet_analysis::Component("RawLayer",
|
||||
zeek::packet_analysis::PacketDemo::RawLayer::Instantiate));
|
||||
AddComponent(new zeek::packet_analysis::Component("LLCDemo",
|
||||
zeek::packet_analysis::PacketDemo::LLCDemo::Instantiate));
|
||||
|
||||
zeek::plugin::Configuration config;
|
||||
config.name = "PacketDemo::Bar";
|
||||
config.description = "A Bar packet analyzer.";
|
||||
config.description = "Demo packet analyzers (RawLayer, LLC).";
|
||||
config.version.major = 1;
|
||||
config.version.minor = 0;
|
||||
config.version.patch = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue