]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Add vsock test case 612/head
authorStefan Hajnoczi <[email protected]>
Wed, 23 Aug 2017 15:53:10 +0000 (16:53 +0100)
committerStefan Hajnoczi <[email protected]>
Tue, 16 Apr 2019 14:12:13 +0000 (15:12 +0100)
Add a simple vsock packet capture test.

tests/TESTLIST
tests/vsock-1.out [new file with mode: 0644]
tests/vsock-1.pcap [new file with mode: 0644]

index 55e3f38e56e6cfe9037c95a14180433a0cc9f09f..f466a65dd9005515889f3222a17453f02fb17204 100644 (file)
@@ -672,3 +672,6 @@ lldp-app-priority   lldp-app-priority.pcap  lldp-app-priority.out   -v
 
 # DNS URI RR support tests
 dns-uri                dns-uri.pcap    dns-uri.out
+
+# AF_VSOCK tests
+vsock-1        vsock-1.pcap    vsock-1.out
diff --git a/tests/vsock-1.out b/tests/vsock-1.out
new file mode 100644 (file)
index 0000000..f3b71e0
--- /dev/null
@@ -0,0 +1,10 @@
+    1  12:31:11.261679 VIRTIO 3.1024 > 2.1234 CONNECT, length 76
+    2  12:31:11.261740 VIRTIO 2.1234 > 3.1024 CONNECT, length 76
+    3  12:31:12.552718 VIRTIO 3.1024 > 2.1234 PAYLOAD, length 82
+    4  12:31:12.552854 VIRTIO 2.1234 > 3.1024 CONTROL, length 76
+    5  12:31:13.817848 VIRTIO 3.1024 > 2.1234 PAYLOAD, length 82
+    6  12:31:13.817897 VIRTIO 2.1234 > 3.1024 CONTROL, length 76
+    7  12:31:16.939624 VIRTIO 2.1234 > 3.1024 PAYLOAD, length 83
+    8  12:31:16.947538 VIRTIO 3.1024 > 2.1234 CONTROL, length 76
+    9  12:31:17.368933 VIRTIO 2.1234 > 3.1024 DISCONNECT, length 76
+   10  12:31:17.377004 VIRTIO 3.1024 > 2.1234 DISCONNECT, length 76
diff --git a/tests/vsock-1.pcap b/tests/vsock-1.pcap
new file mode 100644 (file)
index 0000000..e696547
Binary files /dev/null and b/tests/vsock-1.pcap differ