]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
doc/byte_math: Add byte_math differences with snort
authorJeff Lucovsky <jlucovsky@oisf.net>
Tue, 2 Aug 2022 15:12:02 +0000 (11:12 -0400)
committerVictor Julien <vjulien@oisf.net>
Fri, 23 Sep 2022 13:51:23 +0000 (15:51 +0200)
Issue: 5077

doc/userguide/rules/differences-from-snort.rst

index 0d2e65a64d6f5f8bc16a6ea235d84629f37b3196..8226e3a7e89941383e62bf617cd024484694fea0 100644 (file)
@@ -263,6 +263,20 @@ See :doc:`http-keywords` for all HTTP keywords.
    use ``byte_extract`` and ``byte_test`` to verify that they
    work as expected.
 
+``byte_math`` Keyword
+---------------------
+
+-  Suricata accepts ``dce`` as an endian value or as a separate keyword.
+   ``endian dce`` or ``dce`` are equivalent.
+
+-  Suricata's rule parser rejects rules that repeat keywords in a single
+   rule. E.g., ``byte_math: endian big, endian little``.
+
+-  Suricata's rule parser accepts ``rvalue`` values of ``0`` to the maximum
+   uint32 value. Snort rejects ``rvalue`` values of ``0`` and requires
+   values to be between ``[1..max-uint32 value]``.
+
+
 ``isdataat`` Keyword
 --------------------