mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Fix ZAM's implementation of Analyzer::name() BiF
ZAM's implementation deviates from Zeek's in consideration of remappings, which means that running ZAM produced conn.log service names prefixed with "spicy_" whereas regular Zeek doesn't.
This commit is contained in:
parent
fb74834f4c
commit
235638815f
2 changed files with 4 additions and 4 deletions
|
@ -33,13 +33,13 @@ size_t broker_mgr_flush_log_buffers() { return zeek::broker_mgr->FlushLogBuffers
|
|||
zeek::Connection* session_mgr_find_connection(zeek::Val* cid) { return zeek::session_mgr->FindConnection(cid); }
|
||||
|
||||
zeek::StringVal* analyzer_name(zeek::EnumVal* val) {
|
||||
plugin::Component* component = zeek::analyzer_mgr->Lookup(val);
|
||||
plugin::Component* component = zeek::analyzer_mgr->Lookup(val, false);
|
||||
|
||||
if ( ! component )
|
||||
component = zeek::packet_mgr->Lookup(val);
|
||||
component = zeek::packet_mgr->Lookup(val, false);
|
||||
|
||||
if ( ! component )
|
||||
component = zeek::file_mgr->Lookup(val);
|
||||
component = zeek::file_mgr->Lookup(val, false);
|
||||
|
||||
if ( component )
|
||||
return new StringVal(component->CanonicalName());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue