mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 10:08:20 +00:00
Moving existing built-in plugins over to new interface.
This commit is contained in:
parent
ea01a1be30
commit
2c34101394
85 changed files with 944 additions and 293 deletions
|
@ -1,14 +1,28 @@
|
|||
// See the file in the main distribution directory for copyright.
|
||||
|
||||
|
||||
#include "plugin/Plugin.h"
|
||||
|
||||
#include "TCP.h"
|
||||
|
||||
BRO_PLUGIN_BEGIN(Bro, TCP)
|
||||
BRO_PLUGIN_DESCRIPTION("TCP analyzer");
|
||||
BRO_PLUGIN_ANALYZER("TCP", tcp::TCP_Analyzer);
|
||||
BRO_PLUGIN_ANALYZER("TCPStats", tcp::TCPStats_Analyzer);
|
||||
BRO_PLUGIN_SUPPORT_ANALYZER("ContentLine");
|
||||
BRO_PLUGIN_SUPPORT_ANALYZER("Contents");
|
||||
BRO_PLUGIN_BIF_FILE(events);
|
||||
BRO_PLUGIN_BIF_FILE(functions);
|
||||
BRO_PLUGIN_END
|
||||
namespace plugin {
|
||||
namespace Bro_TCP {
|
||||
|
||||
class Plugin : public plugin::Plugin {
|
||||
public:
|
||||
plugin::Configuration Configure()
|
||||
{
|
||||
AddComponent(new ::analyzer::Component("TCP", ::analyzer::tcp::TCP_Analyzer::Instantiate));
|
||||
AddComponent(new ::analyzer::Component("TCPStats", ::analyzer::tcp::TCPStats_Analyzer::Instantiate));
|
||||
AddComponent(new ::analyzer::Component("ContentsLine", 0));
|
||||
AddComponent(new ::analyzer::Component("Contents", 0));
|
||||
|
||||
plugin::Configuration config;
|
||||
config.name = "Bro::TCP";
|
||||
config.description = "TCP analyzer";
|
||||
return config;
|
||||
}
|
||||
} plugin;
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue