]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
http2: add check for http2.priority keyword
authorPhilippe Antoine <pantoine@oisf.net>
Thu, 18 Sep 2025 08:30:21 +0000 (10:30 +0200)
committerVictor Julien <victor@inliniac.net>
Fri, 19 Sep 2025 13:32:23 +0000 (15:32 +0200)
Was missing coverage

We do not have any pcaps with a stream changing its priority
to test the index capability

tests/http2-bugfixes/test.rules
tests/http2-bugfixes/test.yaml

index 27a0f66a6f72603348dff69f05280ca67e0041a0..00434f6b03d2caabf2d4a3e9bcb568770635cdb4 100644 (file)
@@ -1 +1,3 @@
 alert http2 any any -> any any (http.cookie; content:"VISITOR"; sid:10;)
+
+alert http2 any any -> any any (http2.priority: >250; sid:11;)
index 9ddae92a8abb1a0f7c2c37045d8c6b61f9951075..b85d254a4139fc947c6f1f8f9ab19b204b331020 100644 (file)
@@ -30,3 +30,9 @@ checks:
       match:
         event_type: alert
         alert.signature_id: 10
+  - filter:
+      count: 1
+      match:
+        event_type: alert
+        alert.signature_id: 11
+        http.http2.request.priority: 255