diff options
author | Vladimir Gavrilov <105977161+0xA50C1A1@users.noreply.github.com> | 2025-01-06 12:57:16 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-06 10:57:16 +0100 |
commit | 12a7d55d271870218f54512fa177eb49c23c641a (patch) | |
tree | d3963e65facc35e9c566b6be038694e5cf3e2fd5 /src/lib | |
parent | 71de91dc7a399cf00f907bc6eab968331b4552a9 (diff) |
Path of Exile 2 support (#2654)
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/protocols/path_of_exile.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/protocols/path_of_exile.c b/src/lib/protocols/path_of_exile.c index 3248e0f68..7a14b50d6 100644 --- a/src/lib/protocols/path_of_exile.c +++ b/src/lib/protocols/path_of_exile.c @@ -36,6 +36,19 @@ static void ndpi_search_pathofexile(struct ndpi_detection_module_struct *ndpi_st NDPI_LOG_DBG(ndpi_struct, "search Path of Exile\n"); + /* Path of Exile 2 */ + if (packet->payload_packet_len == 19 && packet->payload[0] == 0) { + if (ntohs(get_u_int16_t(packet->payload, 1)) == 0x300 && + ntohs(get_u_int16_t(packet->payload, 7)) == 0x200 && + ntohl(get_u_int32_t(packet->payload, 14)) == 0x40) + { + NDPI_LOG_INFO(ndpi_struct, "found Path of Exile 2\n"); + ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_PATHOFEXILE, NDPI_PROTOCOL_UNKNOWN, + NDPI_CONFIDENCE_DPI); + return; + } + } + /* The first packet always contains these signatures and the character's * nickname (from 4 to 23 chars). */ |