]> The Tcpdump Group git mirrors - tcpdump/commit
Add printing support for vsockmon devices.
authorGerard Garcia <[email protected]>
Tue, 14 Jun 2016 14:45:44 +0000 (16:45 +0200)
committerStefan Hajnoczi <[email protected]>
Tue, 16 Apr 2019 14:12:13 +0000 (15:12 +0100)
commitcda9bf8c5f842fc7110fbbf2234bcc898f78c0bd
tree3a2880bbc250be66df26e923612e2271b89026ad
parent40274117132e13996a6af0daae3394b8663bb730
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
CMakeLists.txt
Makefile.in
netdissect.h
print-vsock.c [new file with mode: 0644]
print.c
win32/prj/GNUmakefile
win32/prj/WinDump.dsp
win32/prj/WinDump.vcproj