From 12a7d55d271870218f54512fa177eb49c23c641a Mon Sep 17 00:00:00 2001 From: Vladimir Gavrilov <105977161+0xA50C1A1@users.noreply.github.com> Date: Mon, 6 Jan 2025 12:57:16 +0300 Subject: Path of Exile 2 support (#2654) --- src/lib/protocols/path_of_exile.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/lib/protocols') 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). */ -- cgit v1.2.3