mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 23:28:20 +00:00
Allow to overwrite packet analysis mappings.
This commit is contained in:
parent
fc814bd7e2
commit
54961b5ea2
5 changed files with 50 additions and 52 deletions
|
@ -42,9 +42,9 @@ bool Analyzer::IsAnalyzer(const char* name)
|
|||
return packet_mgr->GetComponentName(tag) == name;
|
||||
}
|
||||
|
||||
bool Analyzer::RegisterAnalyzerMapping(uint32_t identifier, AnalyzerPtr analyzer)
|
||||
void Analyzer::RegisterAnalyzerMapping(uint32_t identifier, AnalyzerPtr analyzer)
|
||||
{
|
||||
return dispatcher.Register(identifier, std::move(analyzer));
|
||||
dispatcher.Register(identifier, std::move(analyzer));
|
||||
}
|
||||
|
||||
void Analyzer::RegisterDefaultAnalyzer(AnalyzerPtr default_analyzer)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue