Improved Xiaomi HTTP detection. (#1546)

* Merged Xiaomi pcap files

Signed-off-by: lns <matzeton@googlemail.com>
This commit is contained in:
Toni
2022-05-10 11:10:04 +02:00
committed by GitHub
parent 6fc29b3ae8
commit 704920414a
5 changed files with 17 additions and 17 deletions
+6
View File
@@ -413,6 +413,12 @@ static void ndpi_http_parse_subprotocol(struct ndpi_detection_module_struct *ndp
ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_OOKLA, NDPI_PROTOCOL_HTTP, NDPI_CONFIDENCE_DPI);
}
}
if (flow->http.url != NULL &&
strstr(flow->http.url, "micloud.xiaomi.net") != NULL)
{
ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_XIAOMI, NDPI_PROTOCOL_HTTP, NDPI_CONFIDENCE_DPI);
}
}
}