QUIC: extract "max idle timeout" parameter (#2649)

Even if it is only the proposed value by the client (and not the
negotiated one), it might be use as hint for timeout by the (external)
flows manager
This commit is contained in:
Ivan Nardi 2025-01-06 13:45:12 +01:00 committed by GitHub
parent e77ff5ebd8
commit 2e20f670dd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
43 changed files with 206 additions and 171 deletions

View file

@ -1526,6 +1526,9 @@ void process_ndpi_collected_info(struct ndpi_workflow * workflow, struct ndpi_fl
flow->ssh_tls.ssl_version = flow->ndpi_flow->protos.tls_quic.ssl_version;
flow->ssh_tls.quic_version = flow->ndpi_flow->protos.tls_quic.quic_version;
if (is_quic)
flow->idle_timeout_sec = flow->ndpi_flow->protos.tls_quic.quic_idle_timeout_sec;
if(flow->ndpi_flow->protos.tls_quic.server_names_len > 0 && flow->ndpi_flow->protos.tls_quic.server_names)
flow->ssh_tls.server_names = ndpi_strdup(flow->ndpi_flow->protos.tls_quic.server_names);