From b04040768323a7666bcf588f2323054082883d75 Mon Sep 17 00:00:00 2001 From: Toni Date: Tue, 23 Mar 2021 11:46:12 +0100 Subject: Refactored nDPI subprotocol handling and aimini protocol detection. (#1156) * Refactored and merged callback buffer routines for non-udp-tcp / udp / tcp / tcp-wo-payload. Signed-off-by: Toni Uhlig * Try to detect one subprotocol if a detected protocol can have one. * This adds a performance overhead due to much more protocol detection routine calls. See #1148 for more information. Signed-off-by: Toni Uhlig * Refactor subprotocol handling (1/2). Signed-off-by: Toni Uhlig * Refactor subprotocol handling (2/2). Signed-off-by: Toni Uhlig * Prevent some code duplication by using macros for ndpi_int_one_line_struct string comparision. Signed-off-by: Toni Uhlig * Refactored aimini HTTP detection parts (somehow related to #1148). Signed-off-by: Toni Uhlig * Added aimini client/server test pcap. Signed-off-by: Toni Uhlig * Removed master protocol as it was only used for STUN and via also removed API function ndpi_get_protocol_id_master_proto * Adjusted Python code to conform to the changes made during the refactoring process. Signed-off-by: Toni Uhlig --- example/ndpiReader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'example') diff --git a/example/ndpiReader.c b/example/ndpiReader.c index 641c19091..a626eb527 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -246,7 +246,7 @@ void init_doh_bins() { u_int check_bin_doh_similarity(struct ndpi_bin *bin, float *similarity) { u_int i; - float lowest_similarity = 9999999999; + float lowest_similarity = 9999999999.0f; for(i=0; i