agent: Actually fail gathering on UDP port unavailability
authorOlivier Crête <olivier.crete@collabora.com>
Wed, 22 Jul 2020 20:23:09 +0000 (16:23 -0400)
committerOlivier Crête <olivier.crete@collabora.com>
Tue, 18 Aug 2020 20:27:57 +0000 (16:27 -0400)
commit620eec948ce107a40a9d7a79508e7143d28181c5
treec933250fbd352aca5e65d23513b73fdbfc42a365
parentc85a4deede63c1d85ccd7444ac4a69c00e700a3b
agent: Actually fail gathering on UDP port unavailability

This will make it fail if either our test of UDP port clash fails
or if the kernel rejects the new socket because there is a port clash.

Also include a unit test for this.
agent/agent.c
agent/discovery.c
socket/tcp-passive.c
socket/tcp-passive.h
tests/test-set-port-range.c
tests/test-tcp.c