sockets: allow port to be NULL when listening on IP address
commit0983f5e6af76d5df8c6346cbdfff9d8305fb6da0
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 1 Sep 2015 13:46:50 +0000 (1 14:46 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 20 Oct 2015 13:21:45 +0000 (20 14:21 +0100)
tree622d1e1beb3f0bb934742a6bd04e4096cfa07cb3
parent2a8e21c7c8dcb7d235cfd256be36b7e8f9f3fcb3
sockets: allow port to be NULL when listening on IP address

If the port in the SocketAddress struct is NULL, it can allow
the kernel to automatically select a free port. This is useful
in particular in unit tests to avoid a race trying to find a
free port to run a test case on.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
qapi-schema.json
util/qemu-sockets.c