mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 14:08:20 +00:00
Large overhaul in name and appearance for file analysis.
This commit is contained in:
parent
caf61f619b
commit
df2841458d
39 changed files with 420 additions and 875 deletions
|
@ -11,8 +11,8 @@ redef test_get_file_name = function(f: fa_file): string
|
|||
event file_new(f: fa_file) &priority=-10
|
||||
{
|
||||
for ( tag in test_file_analyzers )
|
||||
FileAnalysis::remove_analyzer(f, tag);
|
||||
Files::remove_analyzer(f, tag);
|
||||
local filename = test_get_file_name(f);
|
||||
FileAnalysis::remove_analyzer(f, [$tag=FileAnalysis::ANALYZER_EXTRACT,
|
||||
Files::remove_analyzer(f, [$tag=Files::ANALYZER_EXTRACT,
|
||||
$extract_filename=filename]);
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@ redef default_file_timeout_interval = 2sec;
|
|||
event file_timeout(f: fa_file)
|
||||
{
|
||||
if ( timeout_cnt < 1 )
|
||||
FileAnalysis::set_timeout_interval(f, f$timeout_interval);
|
||||
Files::set_timeout_interval(f, f$timeout_interval);
|
||||
else
|
||||
terminate();
|
||||
++timeout_cnt;
|
||||
|
|
|
@ -4,5 +4,5 @@
|
|||
|
||||
event file_new(f: fa_file)
|
||||
{
|
||||
FileAnalysis::stop(f);
|
||||
Files::stop(f);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue