Merge remote-tracking branch 'origin/topic/seth/zeek_init'

* origin/topic/seth/zeek_init:
  Some more testing fixes.
  Update docs and tests for bro_(init|done) -> zeek_(init|done)
  Implement the zeek_init handler.
This commit is contained in:
Jon Siwek 2019-04-19 11:16:35 -07:00
commit a994be9eeb
628 changed files with 868 additions and 1082 deletions

View file

@ -61,7 +61,7 @@ export {
global log_known_hosts: event(rec: HostsInfo);
}
event bro_init()
event zeek_init()
{
if ( ! Known::use_host_store )
return;
@ -145,7 +145,7 @@ event Known::host_found(info: HostsInfo)
event known_host_add(info);
}
event bro_init()
event zeek_init()
{
Log::create_stream(Known::HOSTS_LOG, [$columns=HostsInfo, $ev=log_known_hosts, $path="known_hosts"]);
}

View file

@ -80,7 +80,7 @@ redef record connection += {
};
event bro_init()
event zeek_init()
{
if ( ! Known::use_service_store )
return;
@ -216,7 +216,7 @@ event connection_state_remove(c: connection) &priority=-5
known_services_done(c);
}
event bro_init() &priority=5
event zeek_init() &priority=5
{
Log::create_stream(Known::SERVICES_LOG, [$columns=ServicesInfo,
$ev=log_known_services,