]> git.ipfire.org Git - thirdparty/suricata-verify.git/commit
tests: add DHCP single-direction transaction tests for bug 8621 master 3197/head
authorJeff Lucovsky <jlucovsky@oisf.net>
Tue, 9 Jun 2026 14:00:49 +0000 (10:00 -0400)
committerVictor Julien <vjulien@oisf.net>
Fri, 26 Jun 2026 21:50:34 +0000 (21:50 +0000)
commite92f3e0c3447627a0b32652718e0d0ae88c29766
tree705928cf474a262b2b70ed39f315cdeaf09299fd
parent3637996ac65d6ab44749f269152ae08e86fdd9ea
tests: add DHCP single-direction transaction tests for bug 8621

DHCP is a stateless parser where each datagram is its own standalone,
single-direction transaction. Verify that a request/reply exchange alerts
once per datagram rather than once per direction, and that directional
rules only match the transaction for their own direction.

bug-8621-01 checks a generic dhcp rule fires exactly once on the request
and once on the reply. bug-8621-02 checks a flow:to_server rule only
matches the request and a flow:to_client rule only matches the reply.

Issue: 8621
tests/bug-8621/README.md [new file with mode: 0644]
tests/bug-8621/bug-8621-01/README.md [new file with mode: 0644]
tests/bug-8621/bug-8621-01/input.pcap [new file with mode: 0644]
tests/bug-8621/bug-8621-01/suricata.yaml [new file with mode: 0644]
tests/bug-8621/bug-8621-01/test.rules [new file with mode: 0644]
tests/bug-8621/bug-8621-01/test.yaml [new file with mode: 0644]
tests/bug-8621/bug-8621-02/README.md [new file with mode: 0644]
tests/bug-8621/bug-8621-02/suricata.yaml [new file with mode: 0644]
tests/bug-8621/bug-8621-02/test.rules [new file with mode: 0644]
tests/bug-8621/bug-8621-02/test.yaml [new file with mode: 0644]