mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 21:18:20 +00:00
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:
parent
ca9baec6e8
commit
e7c6d51ae7
55 changed files with 461 additions and 374 deletions
14
src/Conn.cc
14
src/Conn.cc
|
@ -194,8 +194,8 @@ void Connection::NextPacket(double t, bool is_orig,
|
|||
// arguments for reproducing packets
|
||||
const zeek::Packet *pkt)
|
||||
{
|
||||
current_timestamp = t;
|
||||
current_pkt = pkt;
|
||||
zeek::net::current_timestamp = t;
|
||||
zeek::net::current_pkt = pkt;
|
||||
|
||||
if ( Skipping() )
|
||||
return;
|
||||
|
@ -218,13 +218,13 @@ void Connection::NextPacket(double t, bool is_orig,
|
|||
else
|
||||
last_time = t;
|
||||
|
||||
current_timestamp = 0;
|
||||
current_pkt = nullptr;
|
||||
zeek::net::current_timestamp = 0;
|
||||
zeek::net::current_pkt = nullptr;
|
||||
}
|
||||
|
||||
void Connection::SetLifetime(double lifetime)
|
||||
{
|
||||
ADD_TIMER(&Connection::DeleteTimer, network_time + lifetime, 0,
|
||||
ADD_TIMER(&Connection::DeleteTimer, zeek::net::network_time + lifetime, 0,
|
||||
zeek::detail::TIMER_CONN_DELETE);
|
||||
}
|
||||
|
||||
|
@ -329,7 +329,7 @@ void Connection::EnableStatusUpdateTimer()
|
|||
if ( connection_status_update && connection_status_update_interval )
|
||||
{
|
||||
ADD_TIMER(&Connection::StatusUpdateTimer,
|
||||
network_time + connection_status_update_interval, 0,
|
||||
zeek::net::network_time + connection_status_update_interval, 0,
|
||||
zeek::detail::TIMER_CONN_STATUS_UPDATE);
|
||||
installed_status_timer = 1;
|
||||
}
|
||||
|
@ -339,7 +339,7 @@ void Connection::StatusUpdateTimer(double t)
|
|||
{
|
||||
EnqueueEvent(connection_status_update, nullptr, ConnVal());
|
||||
ADD_TIMER(&Connection::StatusUpdateTimer,
|
||||
network_time + connection_status_update_interval, 0,
|
||||
zeek::net::network_time + connection_status_update_interval, 0,
|
||||
zeek::detail::TIMER_CONN_STATUS_UPDATE);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue