]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
tests: icmp over vxlan test 82/head
authorVictor Julien <victor@inliniac.net>
Thu, 27 Jun 2019 13:14:26 +0000 (15:14 +0200)
committerVictor Julien <victor@inliniac.net>
Thu, 27 Jun 2019 13:33:36 +0000 (15:33 +0200)
tests/vxlan-decoder-02/README.md [new file with mode: 0644]
tests/vxlan-decoder-02/test.yaml [new file with mode: 0644]
tests/vxlan-decoder-02/vxlan.pcap [new file with mode: 0644]

diff --git a/tests/vxlan-decoder-02/README.md b/tests/vxlan-decoder-02/README.md
new file mode 100644 (file)
index 0000000..342ca79
--- /dev/null
@@ -0,0 +1,7 @@
+# Description
+
+Test basic VXLAN decoding
+
+# PCAP
+
+https://github.com/the-tcpdump-group/tcpdump/blob/master/tests/vxlan.pcap
diff --git a/tests/vxlan-decoder-02/test.yaml b/tests/vxlan-decoder-02/test.yaml
new file mode 100644 (file)
index 0000000..eb0e7e6
--- /dev/null
@@ -0,0 +1,23 @@
+requires:
+  min-version: 5.0.0
+  features:
+    - HAVE_LIBJANSSON
+
+checks:
+  - filter:
+      count: 1
+      match:
+        event_type: flow
+        proto: "ICMP"
+        flow.pkts_toserver: 4
+        flow.pkts_toclient: 4
+  - filter:
+      count: 4
+      match:
+        event_type: flow
+        dest_port: 4789
+  - filter:
+      count: 4
+      match:
+        event_type: alert
+        tunnel.dest_port: 4789
diff --git a/tests/vxlan-decoder-02/vxlan.pcap b/tests/vxlan-decoder-02/vxlan.pcap
new file mode 100644 (file)
index 0000000..04f0c2f
Binary files /dev/null and b/tests/vxlan-decoder-02/vxlan.pcap differ