summaryrefslogtreecommitdiff
path: root/print.c
diff options
context:
space:
mode:
authorGerard Garcia <ggarcia@deic.uab.cat>2016-06-14 16:45:44 +0200
committerStefan Hajnoczi <stefanha@redhat.com>2019-04-16 15:12:13 +0100
commitcda9bf8c5f842fc7110fbbf2234bcc898f78c0bd (patch)
tree3a2880bbc250be66df26e923612e2271b89026ad /print.c
parent40274117132e13996a6af0daae3394b8663bb730 (diff)
downloadtcpdump-cda9bf8c5f842fc7110fbbf2234bcc898f78c0bd.tar.gz
Add printing support for vsockmon devices.
Print Linux 4.12 vsockmon captures: # modprobe vsockmon # ip link add type vsockmon # ip link set vsockmon0 up # tcpdump -i vsockmon0 16:25:24.987917 VIRTIO 3.1025 > 2.1234 CONNECT, length 76 16:25:24.987963 VIRTIO 2.1234 > 3.1025 CONNECT, length 76 16:25:26.568271 VIRTIO 3.1025 > 2.1234 PAYLOAD, length 82 16:25:26.568512 VIRTIO 2.1234 > 3.1025 CONTROL, length 76 16:25:28.411335 VIRTIO 3.1025 > 2.1234 DISCONNECT, length 76 16:25:28.411628 VIRTIO 2.1234 > 3.1025 DISCONNECT, length 76 For more information about vsock see: http://wiki.qemu.org/Features/VirtioVsock
Diffstat (limited to 'print.c')
-rw-r--r--print.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/print.c b/print.c
index 21182ba2..44040ecd 100644
--- a/print.c
+++ b/print.c
@@ -234,6 +234,9 @@ static const struct printer printers[] = {
#ifdef DLT_DSA_TAG_BRCM_PREPEND
{ brcm_tag_prepend_if_print, DLT_DSA_TAG_BRCM_PREPEND },
#endif
+#ifdef DLT_VSOCK
+ { vsock_if_print, DLT_VSOCK },
+#endif
{ NULL, 0 },
};