From: Philippe Antoine Date: Tue, 15 Jul 2025 08:14:13 +0000 (+0200) Subject: tcp: fast open detection on first packet when inline X-Git-Tag: suricata-7.0.14~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2805%2Fhead;p=thirdparty%2Fsuricata-verify.git tcp: fast open detection on first packet when inline Ticket: 6744 --- diff --git a/tests/tcp-fastopen-13/README.md b/tests/tcp-fastopen-13/README.md new file mode 100644 index 000000000..d2c7e7f14 --- /dev/null +++ b/tests/tcp-fastopen-13/README.md @@ -0,0 +1,11 @@ +# Test + +Test fast-open with stream.inline to test detection on first packet + +# Ticket + +https://redmine.openinfosecfoundation.org/issues/6744 + +# Pcap + +part of tcp-fastopen-03/tfo.pcap diff --git a/tests/tcp-fastopen-13/test.rules b/tests/tcp-fastopen-13/test.rules new file mode 100644 index 000000000..bc92c5ee6 --- /dev/null +++ b/tests/tcp-fastopen-13/test.rules @@ -0,0 +1 @@ +alert http any any -> any any (http.uri; content:"/index.php"; sid:1;) diff --git a/tests/tcp-fastopen-13/test.yaml b/tests/tcp-fastopen-13/test.yaml new file mode 100644 index 000000000..c343439cb --- /dev/null +++ b/tests/tcp-fastopen-13/test.yaml @@ -0,0 +1,13 @@ +requires: + min-version: 9 + +args: + - --set stream.inline=true + +checks: + - filter: + count: 1 + match: + event_type: alert + alert.signature_id: 1 + pcap_cnt: 1 diff --git a/tests/tcp-fastopen-13/tfo.pcap b/tests/tcp-fastopen-13/tfo.pcap new file mode 100644 index 000000000..ce1cee861 Binary files /dev/null and b/tests/tcp-fastopen-13/tfo.pcap differ