mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 20:48:21 +00:00
Review cleanup
- Add constructors for ConnIDKey, remove BuildConnIDKey() - Rename protocol stats classes and move to implementation file - Rename "num" field of protocol stats to "active" - Explicitly delete copy operations for SessionKey - Change argument for ProtocolStats methods to const-reference - Make key validity methods in Session not be virtual - Rename Session::ClearKey and Session::IsKeyValid
This commit is contained in:
parent
ca553fda27
commit
c8844677f1
9 changed files with 142 additions and 140 deletions
|
@ -26,7 +26,7 @@ static zeek::Connection* add_connection()
|
|||
conn_id.dst_port = htons(80);
|
||||
conn_id.is_one_way = false;
|
||||
conn_id.proto = TRANSPORT_TCP;
|
||||
zeek::detail::ConnIDKey key = zeek::detail::BuildConnIDKey(conn_id);
|
||||
zeek::detail::ConnIDKey key(conn_id);
|
||||
zeek::Connection* conn = new zeek::Connection(key, network_time_start,
|
||||
&conn_id, 1, &p);
|
||||
conn->SetTransport(TRANSPORT_TCP);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue