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

27 lines
735 B
C++

// See the file in the main distribution directory for copyright.
#include "TCP.h"
#include "plugin/Plugin.h"
#include "analyzer/Component.h"
namespace plugin {
namespace Zeek_TCP {
class Plugin : public plugin::Plugin {
public:
plugin::Configuration Configure() override
{
AddComponent(new ::analyzer::Component("TCP", ::analyzer::tcp::TCP_Analyzer::Instantiate));
AddComponent(new ::analyzer::Component("TCPStats", ::analyzer::tcp::TCPStats_Analyzer::Instantiate));
AddComponent(new ::analyzer::Component("CONTENTLINE", 0));
AddComponent(new ::analyzer::Component("Contents", 0));
plugin::Configuration config;
config.name = "Zeek::TCP";
config.description = "TCP analyzer";
return config;
}
} plugin;
}
}