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:
Tim Wojtulewicz 2020-08-19 17:41:24 -07:00
parent d608e7c9a5
commit 0ac3fafe13
64 changed files with 477 additions and 467 deletions

View file

@ -169,7 +169,7 @@ ExprListStmt::~ExprListStmt() = default;
ValPtr ExprListStmt::Exec(Frame* f, StmtFlowType& flow) const
{
last_access = zeek::net::network_time;
last_access = zeek::run_state::network_time;
flow = FLOW_NEXT;
auto vals = eval_list(f, l.get());
@ -233,7 +233,7 @@ static void print_log(const std::vector<ValPtr>& vals)
vec->Assign(vec->Size(), zeek::make_intrusive<zeek::StringVal>(d.Description()));
}
record->Assign(0, zeek::make_intrusive<zeek::TimeVal>(zeek::net::network_time));
record->Assign(0, zeek::make_intrusive<zeek::TimeVal>(zeek::run_state::network_time));
record->Assign(1, std::move(vec));
zeek::log_mgr->Write(plval.get(), record.get());
}