mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 21:18:20 +00:00
Add network_time_init() event.
This commit is contained in:
parent
c99f825e22
commit
97d1acf86f
2 changed files with 13 additions and 1 deletions
|
@ -223,7 +223,11 @@ void expire_timers(iosource::PktSrc* src_ps)
|
|||
void net_packet_dispatch(double t, const Packet* pkt, iosource::PktSrc* src_ps)
|
||||
{
|
||||
if ( ! bro_start_network_time )
|
||||
{
|
||||
bro_start_network_time = t;
|
||||
if ( network_time_init )
|
||||
mgr.Enqueue(network_time_init, zeek::Args{});
|
||||
}
|
||||
|
||||
// network_time never goes back.
|
||||
net_update_time(timer_mgr->Time() < t ? t : timer_mgr->Time());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue