From: Jeff Lucovsky Date: Tue, 18 May 2021 12:22:12 +0000 (-0400) Subject: decode/vntag: 6.0.3+ backport support X-Git-Tag: suricata-6.0.4~77 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=325d8bc3b3779e5ed227ea037abf76fd85ec4efc;p=thirdparty%2Fsuricata-verify.git decode/vntag: 6.0.3+ backport support --- diff --git a/tests/decode-vntag-01/README.md b/tests/decode-vntag-01/README.md index 6749466d1..28e0ceb1e 100644 --- a/tests/decode-vntag-01/README.md +++ b/tests/decode-vntag-01/README.md @@ -1 +1 @@ -Ensure VNTAG (802.1Qbh) packets are decoded +Suricata 7+ Ensure VNTAG (802.1Qbh) packets are decoded diff --git a/tests/decode-vntag-02/README.md b/tests/decode-vntag-02/README.md new file mode 100644 index 000000000..8ece3779c --- /dev/null +++ b/tests/decode-vntag-02/README.md @@ -0,0 +1 @@ +Suricata 6.0.3+ Ensure VNTAG (802.1Qbh) packets are decoded diff --git a/tests/decode-vntag-02/input.pcap b/tests/decode-vntag-02/input.pcap new file mode 100644 index 000000000..64d4aca00 Binary files /dev/null and b/tests/decode-vntag-02/input.pcap differ diff --git a/tests/decode-vntag-02/test.yaml b/tests/decode-vntag-02/test.yaml new file mode 100644 index 000000000..46e934264 --- /dev/null +++ b/tests/decode-vntag-02/test.yaml @@ -0,0 +1,13 @@ +requires: + + min-version: 6.0.3 + +args: + - --set decoder.vntag.enabled=true + +checks: + + - stats: + decoder.ipv4: 5 + decoder.vlan: 5 + decoder.vntag: 5 diff --git a/tests/decode-vntag-03/README.md b/tests/decode-vntag-03/README.md new file mode 100644 index 000000000..14d7cbdda --- /dev/null +++ b/tests/decode-vntag-03/README.md @@ -0,0 +1 @@ +Suricata 6.0.3 Ensure VNTAG (802.1Qbh) packets are not decoded diff --git a/tests/decode-vntag-03/input.pcap b/tests/decode-vntag-03/input.pcap new file mode 100644 index 000000000..64d4aca00 Binary files /dev/null and b/tests/decode-vntag-03/input.pcap differ diff --git a/tests/decode-vntag-03/test.yaml b/tests/decode-vntag-03/test.yaml new file mode 100644 index 000000000..8629bfb34 --- /dev/null +++ b/tests/decode-vntag-03/test.yaml @@ -0,0 +1,10 @@ +requires: + + min-version: 6.0.3 + lt-version: 7.0.0 + +checks: + + - stats: + decoder.ipv4: 0 + decoder.vntag: 0