mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 18:18:19 +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
|
@ -11,7 +11,7 @@
|
|||
#include "Scope.h"
|
||||
#include "Stmt.h"
|
||||
#include "EventRegistry.h"
|
||||
#include "Net.h"
|
||||
#include "RunState.h"
|
||||
#include "Traverse.h"
|
||||
#include "Trigger.h"
|
||||
#include "IPAddr.h"
|
||||
|
@ -3861,7 +3861,7 @@ bool ScheduleExpr::IsPure() const
|
|||
|
||||
ValPtr ScheduleExpr::Eval(Frame* f) const
|
||||
{
|
||||
if ( zeek::net::terminating )
|
||||
if ( zeek::run_state::terminating )
|
||||
return nullptr;
|
||||
|
||||
auto when_val = when->Eval(f);
|
||||
|
@ -3872,7 +3872,7 @@ ValPtr ScheduleExpr::Eval(Frame* f) const
|
|||
double dt = when_val->InternalDouble();
|
||||
|
||||
if ( when->GetType()->Tag() == zeek::TYPE_INTERVAL )
|
||||
dt += zeek::net::network_time;
|
||||
dt += zeek::run_state::network_time;
|
||||
|
||||
auto args = eval_list(f, event->Args());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue