diff options
author | Toni <matzeton@googlemail.com> | 2022-05-10 11:10:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-10 11:10:04 +0200 |
commit | 704920414ac12467d048bddf44e7ecf76936e90c (patch) | |
tree | 70fba0bbad085effc59201eec0797365cb6c1ad0 /src | |
parent | 6fc29b3ae80b8985771100937a22e26b70fe1a4c (diff) |
Improved Xiaomi HTTP detection. (#1546)
* Merged Xiaomi pcap files
Signed-off-by: lns <matzeton@googlemail.com>
Diffstat (limited to 'src')
-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); + } } } |