]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
websocket: fix opcodes values for ping/pong 11072/head
authorPhilippe Antoine <pantoine@oisf.net>
Tue, 14 May 2024 11:32:04 +0000 (13:32 +0200)
committerVictor Julien <victor@inliniac.net>
Tue, 14 May 2024 16:00:22 +0000 (18:00 +0200)
And also set close

Ticket: 7025

rust/src/websocket/parser.rs

index edf611707e1479426830478664ca038e8cc36d3e..eb6dc900e5ce5bbaf58ad675b2136bc758ae0848 100644 (file)
@@ -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)]