diff options
author | lns <matzeton@googlemail.com> | 2022-05-10 09:58:30 +0200 |
---|---|---|
committer | lns <matzeton@googlemail.com> | 2022-05-10 10:08:27 +0200 |
commit | f5bcbec6866ceb40eada2903d5c0216ff1045eb1 (patch) | |
tree | a8e26d28afb1137433d29b2589ce8965fa0730a1 /src/lib/protocols/http.c | |
parent | 4319d760e0aa5b3818332f8bc355bd1b75045183 (diff) |
Improved Xiaomi HTTP detection.improved/xiaomi
* Merged Xiaomi pcap files
Signed-off-by: lns <matzeton@googlemail.com>
Diffstat (limited to 'src/lib/protocols/http.c')
-rw-r--r-- | src/lib/protocols/http.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/protocols/http.c b/src/lib/protocols/http.c index 8f7f1c262..4b66a1da6 100644 --- a/src/lib/protocols/http.c +++ b/src/lib/protocols/http.c @@ -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); + } } } |