diff options
author | Luca <deri@ntop.org> | 2024-06-12 10:55:07 +0200 |
---|---|---|
committer | Luca <deri@ntop.org> | 2024-06-12 10:55:07 +0200 |
commit | 7c7c375b451ba506134f426f71e065c66c9200dc (patch) | |
tree | 5b65dff67b548ac51d96ebc743495fb1985d9fc0 /src | |
parent | 312dc424bdf93f6680562e7f925e782c766383e6 (diff) |
Improved detection of Android connectiity checks
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/protocols/http.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/protocols/http.c b/src/lib/protocols/http.c index c73bd47fe..bfb47f514 100644 --- a/src/lib/protocols/http.c +++ b/src/lib/protocols/http.c @@ -550,6 +550,16 @@ static void ndpi_http_parse_subprotocol(struct ndpi_detection_module_struct *ndp } } + if(flow->http.url + && ( + ends_with(ndpi_struct, (char*)flow->http.url, "/generate_204") + || ends_with(ndpi_struct, (char*)flow->http.url, "/generate204") + ) + ) { + flow->category = NDPI_PROTOCOL_CATEGORY_CONNECTIVITY_CHECK; + return; + } + if(flow->detected_protocol_stack[1] == NDPI_PROTOCOL_UNKNOWN && flow->http.url && ((strstr(flow->http.url, ":8080/downloading?n=0.") != NULL) || |