mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 00:28:21 +00:00
Move zeek::net namespace to zeek::run_state namespace.
This also moves all of the code from Net.{h,cc} to RunState.{h,cc} and marks Net.h as deprecated
This commit is contained in:
parent
d608e7c9a5
commit
0ac3fafe13
64 changed files with 477 additions and 467 deletions
|
@ -1,5 +1,5 @@
|
|||
#include "WeirdState.h"
|
||||
#include "Net.h"
|
||||
#include "RunState.h"
|
||||
#include "util.h"
|
||||
|
||||
namespace zeek::detail {
|
||||
|
@ -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 = zeek::net::network_time;
|
||||
state.sampling_start_time = zeek::run_state::network_time;
|
||||
else
|
||||
{
|
||||
if ( zeek::net::network_time > state.sampling_start_time + duration )
|
||||
if ( zeek::run_state::network_time > state.sampling_start_time + duration )
|
||||
{
|
||||
state.sampling_start_time = 0;
|
||||
state.count = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue