]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: Allow port allocator to skip bind() check
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 3 Jun 2014 11:02:51 +0000 (12:02 +0100)
committerJim Fehlig <jfehlig@suse.com>
Thu, 11 Sep 2014 21:40:14 +0000 (15:40 -0600)
commit973173e6bfa9ac0dc0b4c68daeee3ed53bcc827a
treed64f60df0eae501924667894ece5dd2724d85790
parent37d8c75fad297891b80086b125046ed3990eaf59
util: Allow port allocator to skip bind() check

Test suites using the port allocator don't want to have different
behaviour depending on whether a port is in use on the host. Add
a VIR_PORT_ALLOCATOR_SKIP_BIND_CHECK which test suites can use
to skip the bind() test. The port allocator will thus only track
ports in use by the test suite process itself. This is fine when
using the port allocator to generate guest configs which won't
actually be launched

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Signed-off-by: Jim Fehlig <jfehlig@suse.com>
src/libxl/libxl_driver.c
src/qemu/qemu_driver.c
src/util/virportallocator.c
src/util/virportallocator.h
tests/virportallocatortest.c