Add hook 'HookAddToAnalyzerTree' to support TCPRS plugin

This commit introduces a new hook, HookAddToAnalyzerTree, which
allows plugins to add a new analyzer to the analyzer tree during
analyzer tree creation. This hook is necessary to support the
TCPRS plugin.

Additionally, the order in which the scripts were loaded has been
changed to address a problem with undefined variable errors due
to load order issues.

Signed-off-by: James Swaro <james.swaro@gmail.com>
This commit is contained in:
James Swaro 2015-07-26 12:46:45 -05:00
parent 30bb17ea8d
commit 85fd1c9fa7
5 changed files with 43 additions and 3 deletions

View file

@ -23,6 +23,7 @@ const char* plugin::hook_name(HookType h)
"DrainEvents",
"UpdateNetworkTime",
"BroObjDtor",
"AddToAnalyzerTree",
// MetaHooks
"MetaHookPre",
"MetaHookPost",
@ -310,6 +311,10 @@ void Plugin::HookUpdateNetworkTime(double network_time)
{
}
void Plugin::HookAddToAnalyzerTree(Connection *conn)
{
}
void Plugin::HookBroObjDtor(void* obj)
{
}