diff options
author | Vladimir Gavrilov <105977161+0xA50C1A1@users.noreply.github.com> | 2024-01-18 21:23:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-18 19:23:44 +0100 |
commit | 248f3d55884883d0d879d3363bc8e560706cae37 (patch) | |
tree | 242c822a05e199dcfb1df9518b540a8533137285 /src/lib/protocols/http.c | |
parent | 0712d496fe63fd16f8e943a438c57f75d8cae880 (diff) |
Rework Steam detection (part 1) (#2264)
* Clean up Steam dissector
* Add Steam Datagram Relay dissector
* Update docs
* Update test results
* Remove csgo.c from MSVC project
* Small fixes
* Add Steam TLS pcap sample
* Merge Steam pcap samples into single one
* Fix typo
* Update test results
Diffstat (limited to 'src/lib/protocols/http.c')
-rw-r--r-- | src/lib/protocols/http.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/protocols/http.c b/src/lib/protocols/http.c index 673345b93..8360330cf 100644 --- a/src/lib/protocols/http.c +++ b/src/lib/protocols/http.c @@ -546,6 +546,11 @@ static void ndpi_http_parse_subprotocol(struct ndpi_detection_module_struct *ndp flow->http.user_agent && strstr(flow->http.user_agent, "MSRPC")) { ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_MS_RPCH, master_protocol, NDPI_CONFIDENCE_DPI); } + + if ((flow->detected_protocol_stack[1] == NDPI_PROTOCOL_UNKNOWN) && + flow->http.user_agent && strstr(flow->http.user_agent, "Valve/Steam HTTP Client")) { + ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_STEAM, master_protocol, NDPI_CONFIDENCE_DPI); + } } /* ************************************************************* */ |