diff options
Diffstat (limited to 'example')
-rw-r--r-- | example/ndpiReader.c | 2 | ||||
-rw-r--r-- | example/reader_util.c | 3 | ||||
-rw-r--r-- | example/reader_util.h | 1 |
3 files changed, 6 insertions, 0 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c index a1eae008a..79ba0f7e6 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -2188,6 +2188,8 @@ static void printFlow(u_int32_t id, struct ndpi_flow_info *flow, u_int16_t threa fprintf(out, "]"); } + if(flow->idle_timeout_sec) fprintf(out, "[Idle Timeout: %d]", flow->idle_timeout_sec); + #ifdef HEURISTICS_CODE if(flow->ssh_tls.browser_heuristics.is_safari_tls) fprintf(out, "[Safari]"); if(flow->ssh_tls.browser_heuristics.is_firefox_tls) fprintf(out, "[Firefox]"); diff --git a/example/reader_util.c b/example/reader_util.c index 2a726b6e1..193723e06 100644 --- a/example/reader_util.c +++ b/example/reader_util.c @@ -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); diff --git a/example/reader_util.h b/example/reader_util.h index 1ee11e071..452f9023f 100644 --- a/example/reader_util.h +++ b/example/reader_util.h @@ -279,6 +279,7 @@ typedef struct ndpi_flow_info { char *bittorent_hash; char *dhcp_fingerprint; char *dhcp_class_ident; + uint32_t idle_timeout_sec; ndpi_risk risk; struct { |