]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
doc: there is no right shift for integer bitmasks 10501/head
authorPhilippe Antoine <pantoine@oisf.net>
Tue, 30 Jan 2024 14:45:17 +0000 (15:45 +0100)
committerPhilippe Antoine <pantoine@oisf.net>
Mon, 26 Feb 2024 10:16:22 +0000 (11:16 +0100)
Ticket: 6628

doc/userguide/rules/integer-keywords.rst

index c70b8b5f1860073ed7acc267e602eddd96d0afb6..db539bec5ca1ab81e1ca9f3e0f6b1a3a175c0044 100644 (file)
@@ -71,6 +71,10 @@ Some of these bits have a string/meaning associated to it.
 Rules can be written using a list (comma-separated) of these strings,
 where each item can be negated.
 
+There is no right shift for trailing zeros applied here (even if there is one
+for ``byte_test`` and ``byte_math``). That means a rule with
+``websocket.flags:&0xc0=2`` will be rejected as invalid as it can never match.
+
 Examples::
 
     websocket.flags:fin,!comp;