diff options
author | Luca Deri <lucaderi@users.noreply.github.com> | 2020-08-19 21:49:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-19 21:49:53 +0200 |
commit | 248d756e9945a5857bd4a75b560c1961cd890b20 (patch) | |
tree | 711f17a9411a0dbef2278ec959f8d1c67e0c5388 /src | |
parent | 9f431f92184a9f836e609e200e89bb06c6830bf1 (diff) | |
parent | 3a767861216cc6b5a8f40357ce3c0b5e9a7da485 (diff) |
Merge pull request #987 from lnslbrty/update/mysql-protocol-detection
Updated MySQL protocol detection to support server version 8.
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/protocols/mysql.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/protocols/mysql.c b/src/lib/protocols/mysql.c index 485456e91..aa95d46c4 100644 --- a/src/lib/protocols/mysql.c +++ b/src/lib/protocols/mysql.c @@ -40,7 +40,7 @@ void ndpi_search_mysql_tcp(struct ndpi_detection_module_struct *ndpi_struct, str && get_u_int8_t(packet->payload, 2) == 0x00 //3rd byte of packet length && get_u_int8_t(packet->payload, 3) == 0x00 //packet sequence number is 0 for startup packet && get_u_int8_t(packet->payload, 5) > 0x30 //server version > 0 - && get_u_int8_t(packet->payload, 5) < 0x37 //server version < 7 + && get_u_int8_t(packet->payload, 5) < 0x39 //server version < 9 && get_u_int8_t(packet->payload, 6) == 0x2e //dot ) { #if 0 |