diff --git a/rust/src/mysql/mysql.rs b/rust/src/mysql/mysql.rs index 0a3796274a14..0a0f53892139 100644 --- a/rust/src/mysql/mysql.rs +++ b/rust/src/mysql/mysql.rs @@ -1124,6 +1124,7 @@ pub unsafe extern "C" fn rs_mysql_register_parser() { SCLogError!("Invalid value for mysql.max-tx"); } } + AppLayerParserRegisterLogger(IPPROTO_TCP, ALPROTO_MYSQL); } else { SCLogDebug!("Protocol detector and parser disabled for MYSQL."); } diff --git a/src/app-layer-parser.c b/src/app-layer-parser.c index c8410d41e4a8..fb63ff6c5277 100644 --- a/src/app-layer-parser.c +++ b/src/app-layer-parser.c @@ -1732,6 +1732,7 @@ void AppLayerParserRegisterProtocolParsers(void) RegisterHTTP2Parsers(); rs_telnet_register_parser(); RegisterIMAPParsers(); + rs_mysql_register_parser(); /** POP3 */ AppLayerProtoDetectRegisterProtocol(ALPROTO_POP3, "pop3"); diff --git a/src/app-layer-protos.h b/src/app-layer-protos.h index 0ba973a2edb3..c43c1bc9de7b 100644 --- a/src/app-layer-protos.h +++ b/src/app-layer-protos.h @@ -64,11 +64,11 @@ enum AppProtoEnum { ALPROTO_HTTP2, ALPROTO_BITTORRENT_DHT, ALPROTO_POP3, - ALPROTO_MYSQL, // signature-only (ie not seen in flow) // HTTP for any version (ALPROTO_HTTP1 (version 1) or ALPROTO_HTTP2) ALPROTO_HTTP, + ALPROTO_MYSQL, /* used by the probing parser when alproto detection fails * permanently for that particular stream */