Add Meraki Cloud protocol and improve other protocols (#1854)

Avoid some LineCall and Jabber false positives.
Detect Discord mid flows.
Fix Bittorrent detection.
This commit is contained in:
Ivan Nardi
2023-01-17 11:38:39 +01:00
committed by GitHub
parent 29be01ef3a
commit 470eaa6ff3
102 changed files with 255 additions and 100 deletions
+3 -1
View File
@@ -454,6 +454,8 @@ static void ndpi_search_bittorrent(struct ndpi_detection_module_struct *ndpi_str
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
char *bt_proto = NULL;
NDPI_LOG_DBG(ndpi_struct, "Search bittorrent\n");
/* This is broadcast */
if(packet->iph) {
if((packet->iph->saddr == 0xFFFFFFFF) || (packet->iph->daddr == 0xFFFFFFFF))
@@ -491,7 +493,7 @@ static void ndpi_search_bittorrent(struct ndpi_detection_module_struct *ndpi_str
wireshark/epan/dissectors/packet-bt-utp.c
*/
if(packet->payload_packet_len >= 23 /* min header size */) {
if(packet->payload_packet_len >= 20 /* min header size */) {
if(
(strncmp((const char*)packet->payload, bt_search, strlen(bt_search)) == 0)
|| (strncmp((const char*)packet->payload, bt_search1, strlen(bt_search1)) == 0)