From 8c7071e040865b3b70b98ff8d8ad18c41f3fb74c Mon Sep 17 00:00:00 2001 From: Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> Date: Sat, 10 Dec 2022 18:32:25 +0100 Subject: DTLS: handle (certificate) fragments (#1811) Keep using the existing function to handle reassembling buffer: rename it from `ndpi_search_tls_tcp_memory` to `ndpi_search_tls_memory` and make it "transport" agnostic --- example/reader_util.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'example') diff --git a/example/reader_util.c b/example/reader_util.c index 5b85c4784..2e285a7f1 100644 --- a/example/reader_util.c +++ b/example/reader_util.c @@ -1151,7 +1151,9 @@ void process_ndpi_collected_info(struct ndpi_workflow * workflow, struct ndpi_fl inet_ntop(AF_INET, &flow->ndpi_flow->protos.natpmp.external_address.ipv4, &flow->natpmp.ip[0], sizeof(flow->natpmp.ip)); } /* DISCORD */ - else if(is_ndpi_proto(flow, NDPI_PROTOCOL_DISCORD) && !is_ndpi_proto(flow, NDPI_PROTOCOL_TLS) && + else if(is_ndpi_proto(flow, NDPI_PROTOCOL_DISCORD) && + !is_ndpi_proto(flow, NDPI_PROTOCOL_TLS) && + !is_ndpi_proto(flow, NDPI_PROTOCOL_DTLS) && flow->ndpi_flow->protos.discord.client_ip[0] != '\0') { flow->info_type = INFO_GENERIC; ndpi_snprintf(flow->info, sizeof(flow->info), "Client IP: %s", -- cgit v1.2.3