mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 20:48:21 +00:00
Rename ConnID and ConnIDKey
This commit is contained in:
parent
0b7ca5e7bc
commit
9684624a52
8 changed files with 39 additions and 35 deletions
|
@ -19,14 +19,14 @@ static zeek::Connection* add_connection()
|
|||
zeek::run_state::detail::update_network_time(network_time_start);
|
||||
|
||||
zeek::Packet p;
|
||||
zeek::ConnID conn_id;
|
||||
zeek::ConnTuple conn_id;
|
||||
conn_id.src_addr = zeek::IPAddr("1.2.3.4");
|
||||
conn_id.dst_addr = zeek::IPAddr("5.6.7.8");
|
||||
conn_id.src_port = htons(23132);
|
||||
conn_id.dst_port = htons(80);
|
||||
conn_id.is_one_way = false;
|
||||
conn_id.proto = TRANSPORT_TCP;
|
||||
zeek::detail::ConnIDKey key(conn_id);
|
||||
zeek::detail::ConnKey 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