Implement the zeek_init handler.

Implements the change and a test.
This commit is contained in:
Seth Hall 2019-04-12 22:29:40 +02:00
parent f96bc81f85
commit 8cefb9be42
118 changed files with 229 additions and 165 deletions

View file

@ -186,7 +186,7 @@ function run(cmd: Command): Result
}
}
event bro_done()
event zeek_done()
{
# We are punting here and just deleting any unprocessed files.
for ( uid in pending_files )

View file

@ -148,7 +148,7 @@ function get_emails(a: addr): string
return fmt_email_string(find_all_emails(a));
}
event bro_init() &priority=10
event zeek_init() &priority=10
{
# Double backslashes are needed due to string parsing.
local_dns_suffix_regex = set_to_regex(local_zones, "(^\\.?|\\.)(~~)$");