summary refs log tree commit diff stats
path: root/stubs/error-printf.c
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2016-10-14 10:00:55 +0100
committerMichael Roth <mdroth@linux.vnet.ibm.com>2016-10-31 19:49:33 -0500
commit6a02c8069f6c28ed1251e3fbbdf16e49d2c27ccc (patch)
tree428aaa097dc544ba45d63a71d9bcfe5a8c23ddb8 /stubs/error-printf.c
parentf06b2031a31cdd3acf6f61a977e505b8c6b58f73 (diff)
downloadfocaccia-qemu-6a02c8069f6c28ed1251e3fbbdf16e49d2c27ccc.tar.gz
focaccia-qemu-6a02c8069f6c28ed1251e3fbbdf16e49d2c27ccc.zip
sockets: add AF_VSOCK support
Add the AF_VSOCK address family so that qemu-ga will be able to use
virtio-vsock.

The AF_VSOCK address family uses <cid, port> address tuples.  The cid is
the unique identifier comparable to an IP address.  AF_VSOCK does not
use name resolution so it's easy to convert between struct sockaddr_vm
and strings.

This patch defines a VsockSocketAddress instead of trying to piggy-back
on InetSocketAddress.  This is cleaner in the long run since it avoids
lots of IPv4 vs IPv6 vs vsock special casing.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
* treat trailing commas as garbage when parsing (Eric Blake)
* add configure check instead of checking AF_VSOCK directly
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Diffstat (limited to 'stubs/error-printf.c')
0 files changed, 0 insertions, 0 deletions