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:
Jon Siwek 2013-04-10 14:34:23 -05:00
parent a2d9b47bcd
commit d9321e2203
28 changed files with 191 additions and 243 deletions

View file

@ -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)
{

View 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);