]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
quic: add tests with multiple retry packets 2314/head
authorPhilippe Antoine <pantoine@oisf.net>
Fri, 21 Feb 2025 09:36:59 +0000 (10:36 +0100)
committerVictor Julien <victor@inliniac.net>
Fri, 21 Feb 2025 13:57:20 +0000 (14:57 +0100)
Ticket: 7556

The second retry packet must be discarded

tests/quic-retry-multiple/README.md [new file with mode: 0644]
tests/quic-retry-multiple/input.pcap [new file with mode: 0644]
tests/quic-retry-multiple/test.yaml [new file with mode: 0644]

diff --git a/tests/quic-retry-multiple/README.md b/tests/quic-retry-multiple/README.md
new file mode 100644 (file)
index 0000000..9794a18
--- /dev/null
@@ -0,0 +1,11 @@
+# Description
+
+Test quic parsing with retry packets, with a second retry packet that is discarded by the client 
+
+# Ticket
+
+https://redmine.openinfosecfoundation.org/issues/7556
+
+# PCAP
+
+The pcap comes from https://redmine.openinfosecfoundation.org/issues/7556
diff --git a/tests/quic-retry-multiple/input.pcap b/tests/quic-retry-multiple/input.pcap
new file mode 100644 (file)
index 0000000..843836c
Binary files /dev/null and b/tests/quic-retry-multiple/input.pcap differ
diff --git a/tests/quic-retry-multiple/test.yaml b/tests/quic-retry-multiple/test.yaml
new file mode 100644 (file)
index 0000000..83754bb
--- /dev/null
@@ -0,0 +1,26 @@
+requires:
+  min-version: 8
+
+checks:
+  - filter:
+      count: 1
+      match:
+        event_type: quic
+        pcap_cnt: 2
+        quic.extensions[0].name: "extended_master_secret"
+  - filter:
+      count: 1
+      match:
+        event_type: quic
+        pcap_cnt: 5
+        quic.extensions[0].name: "extended_master_secret"
+  - filter:
+      count: 1
+      match:
+        event_type: quic
+        pcap_cnt: 8
+        quic.extensions[0].name: "supported_versions"
+  - filter:
+      count: 0
+      match:
+        event_type: anomaly