mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 05:28:20 +00:00
Make conn.log service field ordered
This changes service set in the connection record, and thus also the conn.log service field to being ordered. Speficically, the order of the entries in the service field will be the same order in which protocols will be confirmed. This means that it now is possible to see which protocols were layered over each other in which order by looking at the respective conn.log entry.
This commit is contained in:
parent
c72c1cba6f
commit
ac7bbe6949
33 changed files with 44 additions and 40 deletions
|
@ -224,8 +224,10 @@ const RecordValPtr& Connection::GetVal() {
|
|||
conn_val->Assign(1, std::move(orig_endp));
|
||||
conn_val->Assign(2, std::move(resp_endp));
|
||||
// 3 and 4 are set below.
|
||||
conn_val->Assign(5, make_intrusive<TableVal>(id::string_set)); // service
|
||||
conn_val->Assign(6, val_mgr->EmptyString()); // history
|
||||
// Do not assign to 5 (service). It is a non-optional set, which will be default-initialized
|
||||
// using the script-level settings; this easily applies the &ordered attribute to it.
|
||||
// conn_val->Assign(5, make_intrusive<TableVal>(id::ordered_string_set)); // service
|
||||
conn_val->Assign(6, val_mgr->EmptyString()); // history
|
||||
|
||||
if ( ! uid )
|
||||
uid.Set(zeek::detail::bits_per_uid);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue