Extend packet analysis test.

This commit is contained in:
Jan Grashoefer 2020-09-03 19:59:08 +02:00 committed by Tim Wojtulewicz
parent 3f3f00030d
commit d51252bb3f
17 changed files with 147 additions and 35 deletions

View file

@ -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;