From: Philippe Antoine Date: Fri, 21 Feb 2025 09:36:59 +0000 (+0100) Subject: quic: add tests with multiple retry packets X-Git-Tag: suricata-7.0.9~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2314%2Fhead;p=thirdparty%2Fsuricata-verify.git quic: add tests with multiple retry packets Ticket: 7556 The second retry packet must be discarded --- diff --git a/tests/quic-retry-multiple/README.md b/tests/quic-retry-multiple/README.md new file mode 100644 index 000000000..9794a1802 --- /dev/null +++ b/tests/quic-retry-multiple/README.md @@ -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 index 000000000..843836c60 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 index 000000000..83754bb50 --- /dev/null +++ b/tests/quic-retry-multiple/test.yaml @@ -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