]> git.proxmox.com Git - mirror_iproute2.git/commit
ss: add AF_VSOCK support
authorStefan Hajnoczi <stefanha@redhat.com>
Fri, 6 Oct 2017 15:48:41 +0000 (11:48 -0400)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 11 Oct 2017 17:51:03 +0000 (10:51 -0700)
commitc759116a0b2b6da8df9687b0a40ac69050132c77
tree544832486e4f8ac6ddba703bf002ba93f17cd04b
parentb338a3e7e7d95c9d46de9748604da06287664033
ss: add AF_VSOCK support

The AF_VSOCK address family is a host<->guest communications channel
supported by VMware, KVM, and Hyper-V.  Initial VMware support was
released in Linux 3.9 in 2013 and transports for other hypervisors were
added later.

AF_VSOCK addresses are <u32 cid, u32 port> tuples.  The 32-bit cid
integer is comparable to an IP address.  AF_VSOCK ports work like
TCP/UDP ports.

Both SOCK_STREAM and SOCK_DGRAM socket types are available.

This patch adds AF_VSOCK support to ss(8) so that sockets can be
observed.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
man/man8/ss.8
misc/ss.c