mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Use more efficient method to grab the protocol.
get_conn_transport_proto needs to use sessions->FindConnection and do a hash lookup to find the connection while get_port_transport_proto just looks at the port directly.
This commit is contained in:
parent
a97cf10d03
commit
a5ad864e13
1 changed files with 1 additions and 1 deletions
|
@ -162,7 +162,7 @@ function new_session(c: connection, trans_id: count): Info
|
|||
info$ts = network_time();
|
||||
info$id = c$id;
|
||||
info$uid = c$uid;
|
||||
info$proto = get_conn_transport_proto(c$id);
|
||||
info$proto = get_port_transport_proto(c$id$resp_p);
|
||||
info$trans_id = trans_id;
|
||||
return info;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue