]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
decode/vntag: 6.0.3+ backport support
authorJeff Lucovsky <jeff@lucovsky.org>
Tue, 18 May 2021 12:22:12 +0000 (08:22 -0400)
committerJason Ish <jason.ish@oisf.net>
Tue, 6 Jul 2021 21:48:45 +0000 (15:48 -0600)
tests/decode-vntag-01/README.md
tests/decode-vntag-02/README.md [new file with mode: 0644]
tests/decode-vntag-02/input.pcap [new file with mode: 0644]
tests/decode-vntag-02/test.yaml [new file with mode: 0644]
tests/decode-vntag-03/README.md [new file with mode: 0644]
tests/decode-vntag-03/input.pcap [new file with mode: 0644]
tests/decode-vntag-03/test.yaml [new file with mode: 0644]

index 6749466d1475eafa3b5462bf22e95095e40db25c..28e0ceb1e1c0ef0502d752e8fed5749b63264624 100644 (file)
@@ -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 (file)
index 0000000..8ece377
--- /dev/null
@@ -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 (file)
index 0000000..64d4aca
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 (file)
index 0000000..46e9342
--- /dev/null
@@ -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 (file)
index 0000000..14d7cbd
--- /dev/null
@@ -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 (file)
index 0000000..64d4aca
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 (file)
index 0000000..8629bfb
--- /dev/null
@@ -0,0 +1,10 @@
+requires:
+
+  min-version: 6.0.3
+  lt-version: 7.0.0
+
+checks:
+
+    - stats:
+        decoder.ipv4: 0
+        decoder.vntag: 0