From 1361c8fbdf4f4a33db7503dce5c6cd232a7c3fbf Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Mon, 30 Sep 2019 17:28:41 +0200 Subject: Updated the logic of ndpi_is_subprotocol_informative() --- src/lib/ndpi_main.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index c17b971a1..a4a69eab8 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -248,7 +248,12 @@ u_int8_t ndpi_is_subprotocol_informative(struct ndpi_detection_module_struct *nd return(0); switch(protoId) { + /* All dissectors that have calls to ndpi_match_host_subprotocol() */ case NDPI_PROTOCOL_DNS: + case NDPI_PROTOCOL_HTTP: + case NDPI_PROTOCOL_TLS: + case NDPI_PROTOCOL_QUIC: + case NDPI_PROTOCOL_FBZERO: return(1); break; -- cgit v1.2.3