From c50a8d4808bbe3f41cbe5e681e84a1eb52129cb1 Mon Sep 17 00:00:00 2001 From: Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> Date: Sat, 6 Mar 2021 05:48:36 +0100 Subject: Add support for Snapchat voip calls (#1147) * Add support for Snapchat voip calls Snapchat multiplexes some of its audio/video real time traffic with QUIC sessions. The peculiarity of these sessions is that they are Q046 and don't have any SNI. * Fix tests with libgcrypt disabled --- src/lib/ndpi_main.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/lib/ndpi_main.c') diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index daf02f76a..a9c3c9665 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -1576,6 +1576,10 @@ static void ndpi_init_protocol_defaults(struct ndpi_detection_module_struct *ndp 1 /* can_have_a_subprotocol */, no_master, no_master, "AppleSiri", NDPI_PROTOCOL_CATEGORY_VIRTUAL_ASSISTANT, ndpi_build_default_ports(ports_a, 0, 0, 0, 0, 0) /* TCP */, ndpi_build_default_ports(ports_b, 0, 0, 0, 0, 0) /* UDP */); + ndpi_set_proto_defaults(ndpi_str, NDPI_PROTOCOL_ACCEPTABLE, NDPI_PROTOCOL_SNAPCHAT_CALL, + 0 /* can_have_a_subprotocol */, no_master, no_master, "SnapchatCall", + NDPI_PROTOCOL_CATEGORY_VOIP, ndpi_build_default_ports(ports_a, 0, 0, 0, 0, 0) /* TCP */, + ndpi_build_default_ports(ports_b, 0, 0, 0, 0, 0) /* UDP */); #ifdef CUSTOM_NDPI_PROTOCOLS #include "../../../nDPI-custom/custom_ndpi_main.c" @@ -7069,6 +7073,11 @@ uint8_t ndpi_connection_tracking(struct ndpi_detection_module_struct *ndpi_str, if(flow->extra_packets_func) return(1); break; + + case NDPI_PROTOCOL_QUIC: + if(flow->extra_packets_func) + return(1); + break; } return(0); -- cgit v1.2.3