Move the functions and variables in Net.h to the zeek::net namespace. This includes moving network_time out of util.h.

This commit is contained in:
Tim Wojtulewicz 2020-08-05 11:37:20 -07:00
parent ca9baec6e8
commit e7c6d51ae7
55 changed files with 461 additions and 374 deletions

View file

@ -14,10 +14,10 @@ bool PermitWeird(WeirdStateMap& wsm, const char* name, uint64_t threshold,
return true;
if ( state.count == threshold + 1)
state.sampling_start_time = network_time;
state.sampling_start_time = zeek::net::network_time;
else
{
if ( network_time > state.sampling_start_time + duration )
if ( zeek::net::network_time > state.sampling_start_time + duration )
{
state.sampling_start_time = 0;
state.count = 1;