mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 02:28:21 +00:00
FileAnalysis: remove some file events.
The file_new event now takes over the function of file_type, file_bof, and file_bof_buffer.
This commit is contained in:
parent
a2d9b47bcd
commit
d9321e2203
28 changed files with 191 additions and 243 deletions
|
@ -15,11 +15,7 @@ redef test_get_file_name = function(f: fa_file): string
|
|||
};
|
||||
|
||||
redef exit_only_after_terminate = T;
|
||||
|
||||
event file_new(f: fa_file)
|
||||
{
|
||||
f$timeout_interval = 2sec;
|
||||
}
|
||||
redef default_file_timeout_interval = 2sec;
|
||||
|
||||
event file_timeout(f: fa_file)
|
||||
{
|
||||
|
|
|
@ -8,7 +8,7 @@ redef test_get_file_name = function(f: fa_file): string
|
|||
return fmt("%s-file", f$id);
|
||||
};
|
||||
|
||||
event file_type(f: fa_file)
|
||||
event file_new(f: fa_file) &priority=-10
|
||||
{
|
||||
for ( act in test_file_actions )
|
||||
FileAnalysis::remove_action(f, act);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue