Add explicit root analyzer for packet analysis.

This commit is contained in:
Jan Grashoefer 2020-09-07 16:17:26 +02:00 committed by Tim Wojtulewicz
parent d51252bb3f
commit 8f951574d7
21 changed files with 106 additions and 35 deletions

View file

@ -2,6 +2,8 @@
#include "Analyzer.h"
#include "DebugLogger.h"
namespace zeek::packet_analysis {
Analyzer::Analyzer(std::string name)
@ -88,4 +90,12 @@ bool Analyzer::ForwardPacket(size_t len, const uint8_t* data, Packet* packet) co
return true;
}
}
void Analyzer::DumpDebug() const
{
#ifdef DEBUG
DBG_LOG(DBG_PACKET_ANALYSIS, "Debug info for %s", this->GetAnalyzerName());
dispatcher.DumpDebug();
#endif
}
}