--- /dev/null
+# Test
+
+Test that src_macs and dest_macs are swapped when a flow is reverted
+
+# Ticket
+
+https://redmine.openinfosecfoundation.org/issues/8172
+
+# Pcap
+
+dns-reverted-tcp-1/dns.pcap
+
--- /dev/null
+pcap: ../dns-reversed-tcp-1/dns.pcap
+
+requires:
+ min-version: 9
+
+args:
+ - --set stream.midstream=true
+
+checks:
+ - filter:
+ count: 1
+ match:
+ event_type: flow
+ src_ip: "10.16.1.11"
+ ether.src_macs: ["d8:cb:8a:ed:a1:46"]
+ dest_ip: "8.8.4.4"
+ ether.dest_macs: ["00:15:17:0d:06:f7"]