From 72b05fed75ea71f775e6c51991f4a31b2d8071f7 Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Sun, 21 Jul 2019 08:17:28 +0200 Subject: STUN, Hangout, Duo dissection improvements --- src/lib/ndpi_main.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/lib/ndpi_main.c') diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index 926cfc2d8..71844055d 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -4088,8 +4088,14 @@ ndpi_protocol ndpi_detection_giveup(struct ndpi_detection_module_struct *ndpi_st if(ret.master_protocol == NDPI_PROTOCOL_STUN) { if(ret.app_protocol == NDPI_PROTOCOL_FACEBOOK) ret.app_protocol = NDPI_PROTOCOL_MESSENGER; - else if(ret.app_protocol == NDPI_PROTOCOL_GOOGLE) + else if(ret.app_protocol == NDPI_PROTOCOL_GOOGLE) { + /* + As Google has recently introduced Duo, + we need to distinguish between it and hangout + thing that should be handled by the STUN dissector + */ ret.app_protocol = NDPI_PROTOCOL_HANGOUT; + } } if(enable_guess -- cgit v1.2.3