OSDN Git Service

sockets: remove obsolete code that updated listen address
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 12 Dec 2017 11:12:19 +0000 (11:12 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 21 Dec 2017 08:22:44 +0000 (09:22 +0100)
commit62473511ecbabdf737ba9053845e3551099b04bc
tree20cd42d1fe8197b2b34ca3500010189af7cbc604
parent1ef7c96ee2133753f4aa48617ddbef10d5a88fc9
sockets: remove obsolete code that updated listen address

When listening on unix/tcp sockets there was optional code that would update
the original SocketAddress struct with the info about the actual address that
was listened on. Since the conversion of everything to QIOChannelSocket, no
remaining caller made use of this feature. It has been replaced with the ability
to query the listen address after the fact using the function
qio_channel_socket_get_local_address. This is a better model when the input
address can result in listening on multiple distinct sockets.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Message-Id: <20171212111219.32601-1-berrange@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/qemu/sockets.h
qga/channel-posix.c
util/qemu-sockets.c