sockets: factor out a new try_bind() function
authorKnut Omang <knut.omang@oracle.com>
Mon, 7 Aug 2017 10:58:40 +0000 (12:58 +0200)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 16 Oct 2017 15:55:08 +0000 (16:55 +0100)
commit89382c3de5bc2250b1dad1c42c1f73d5ec6febda
treea8a745d1ce6554d2ab2163ca8c838a63448bde58
parent79b2a13aa81724228166c794f48eb75bfb696b88
sockets: factor out a new try_bind() function

A refactoring step to prepare for the problem
exposed by the test-listen test in the previous commit.

Simplify and reorganize the IPv6 specific extra
measures and move it out of the for loop to increase
code readability. No semantic changes.

Signed-off-by: Knut Omang <knut.omang@oracle.com>
Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
util/qemu-sockets.c