zeek/src/analyzer/protocol/dnp3/Plugin.cc

25 lines
667 B
C++

// See the file in the main distribution directory for copyright.
#include "DNP3.h"
#include "plugin/Plugin.h"
#include "analyzer/Component.h"
namespace plugin {
namespace Zeek_DNP3 {
class Plugin : public zeek::plugin::Plugin {
public:
zeek::plugin::Configuration Configure() override
{
AddComponent(new zeek::analyzer::Component("DNP3_TCP", ::analyzer::dnp3::DNP3_TCP_Analyzer::Instantiate));
AddComponent(new zeek::analyzer::Component("DNP3_UDP", ::analyzer::dnp3::DNP3_UDP_Analyzer::Instantiate));
zeek::plugin::Configuration config;
config.name = "Zeek::DNP3";
config.description = "DNP3 UDP/TCP analyzers";
return config;
}
} plugin;
}
}