mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 23:28:20 +00:00
Merge remote-tracking branch 'origin/topic/awelzel/analyzer-module-enable-disable-file-analyzer'
* origin/topic/awelzel/analyzer-module-enable-disable-file-analyzer: analyzer: Add file_analyzer support to enable_analyzer()/disable_analyzer()
This commit is contained in:
commit
6fcbb55ccd
8 changed files with 41 additions and 6 deletions
|
@ -142,6 +142,8 @@ export {
|
|||
}
|
||||
|
||||
@load base/bif/analyzer.bif
|
||||
@load base/bif/file_analysis.bif
|
||||
@load base/bif/packet_analysis.bif
|
||||
|
||||
event zeek_init() &priority=5
|
||||
{
|
||||
|
@ -157,6 +159,9 @@ function enable_analyzer(tag: AllAnalyzers::Tag) : bool
|
|||
if ( is_packet_analyzer(tag) )
|
||||
return PacketAnalyzer::__enable_analyzer(tag);
|
||||
|
||||
if ( is_file_analyzer(tag) )
|
||||
return Files::__enable_analyzer(tag);
|
||||
|
||||
return __enable_analyzer(tag);
|
||||
}
|
||||
|
||||
|
@ -165,6 +170,9 @@ function disable_analyzer(tag: AllAnalyzers::Tag) : bool
|
|||
if ( is_packet_analyzer(tag) )
|
||||
return PacketAnalyzer::__disable_analyzer(tag);
|
||||
|
||||
if ( is_file_analyzer(tag) )
|
||||
return Files::__disable_analyzer(tag);
|
||||
|
||||
return __disable_analyzer(tag);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue