aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/tencent_games.c
diff options
context:
space:
mode:
authorVladimir Gavrilov <105977161+0xA50C1A1@users.noreply.github.com>2024-03-21 16:38:47 +0300
committerGitHub <noreply@github.com>2024-03-21 14:38:47 +0100
commitbe0fd7444ff714f3c654aca08b3bf151ac801bbf (patch)
tree4f12bfc50aadedf16c56e0016079ee94e1761ba3 /src/lib/protocols/tencent_games.c
parent27f9ca9d045b318bb97e55a9a180ce838db9f90d (diff)
Add more TencentGames signatures (#2354)
Diffstat (limited to 'src/lib/protocols/tencent_games.c')
-rw-r--r--src/lib/protocols/tencent_games.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/protocols/tencent_games.c b/src/lib/protocols/tencent_games.c
index e10106d57..12bde1b37 100644
--- a/src/lib/protocols/tencent_games.c
+++ b/src/lib/protocols/tencent_games.c
@@ -73,6 +73,13 @@ static void ndpi_search_tencent_games(struct ndpi_detection_module_struct *ndpi_
ndpi_int_tencent_games_add_connection(ndpi_struct, flow);
return;
}
+
+ if (ntohl(get_u_int32_t(packet->payload, 0)) == 0x4215F787 &&
+ get_u_int16_t(packet->payload, 6) == 0)
+ {
+ ndpi_int_tencent_games_add_connection(ndpi_struct, flow);
+ return;
+ }
}
NDPI_EXCLUDE_PROTO(ndpi_struct, flow);