From: Philippe Antoine Date: Tue, 30 Jun 2020 06:52:34 +0000 (+0200) Subject: Adds dnp3 midstream direction probing parser test X-Git-Tag: suricata-6.0.4~280 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dcd7b7fb73d1772d73e646669838be26f2bab82d;p=thirdparty%2Fsuricata-verify.git Adds dnp3 midstream direction probing parser test --- diff --git a/tests/dnp3-midstream-confirm/README.md b/tests/dnp3-midstream-confirm/README.md new file mode 100644 index 000000000..8330de065 --- /dev/null +++ b/tests/dnp3-midstream-confirm/README.md @@ -0,0 +1,7 @@ +# Description + +Test DNP3 probing parser direction when starting midstream + +# PCAP + +The pcap is a simple packet DNP3 confirm (answer from server) diff --git a/tests/dnp3-midstream-confirm/dnp3_confirm.pcap b/tests/dnp3-midstream-confirm/dnp3_confirm.pcap new file mode 100644 index 000000000..3dcf39d3d Binary files /dev/null and b/tests/dnp3-midstream-confirm/dnp3_confirm.pcap differ diff --git a/tests/dnp3-midstream-confirm/test.yaml b/tests/dnp3-midstream-confirm/test.yaml new file mode 100644 index 000000000..c6ff6d85c --- /dev/null +++ b/tests/dnp3-midstream-confirm/test.yaml @@ -0,0 +1,15 @@ +requires: + features: + - HAVE_LIBJANSSON + +# disables checksum verification, and uses midstream +args: +- -k none --set stream.midstream=true --set app-layer.protocols.dnp3.enabled=yes + +checks: + - filter: + count: 1 + match: + event_type: flow + app_proto: dnp3 + flow.pkts_toclient: 1