From: Philippe Antoine Date: Tue, 14 May 2024 11:32:04 +0000 (+0200) Subject: websocket: fix opcodes values for ping/pong X-Git-Tag: suricata-8.0.0-beta1~1328 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=806052d76247cfd37772962013e529fb3334cbb7;p=thirdparty%2Fsuricata.git websocket: fix opcodes values for ping/pong And also set close Ticket: 7025 --- diff --git a/rust/src/websocket/parser.rs b/rust/src/websocket/parser.rs index edf611707e..eb6dc900e5 100644 --- a/rust/src/websocket/parser.rs +++ b/rust/src/websocket/parser.rs @@ -28,8 +28,9 @@ pub enum WebSocketOpcode { Continuation = 0, Text = 1, Binary = 2, - Ping = 8, - Pong = 9, + Close = 8, + Ping = 9, + Pong = 10, } #[derive(Clone, Debug, Default)]