bind9/tests
Ondřej Surý af257140e6
Make sure the unit test listening and connecting ports are different
In rare circumstances, the UDP port for the listening socket and the UDP
port for the connecting socket might be the same.  Because we use the
"reuse" port socket option, this isn't caught when binding the socket,
and thus the connected client socket could send a datagram to itself,
completely bypassing the server.  This doesn't happen under normal
operation mode because `named` is listening on a privileged port (53),
and even if not, it doesn't usually talk to itself as the tests do.

Pick an arbitrary port for listening (9153-9156) that is outside the
ephemeral port range for the network manager related unit tests (except
the `doh_test).
2022-10-12 15:36:25 +02:00
..
bench Suppress division by zero warning 2022-10-05 12:31:42 +01:00
dns Resolve violation of weak referencing dns_view 2022-10-05 11:59:36 -07:00
include/tests Update netmgr, tasks, and applications to use isc_loopmgr 2022-08-26 09:09:24 +02:00
irs Move all the unit tests to /tests/<libname>/ 2022-05-28 14:53:02 -07:00
isc Make sure the unit test listening and connecting ports are different 2022-10-12 15:36:25 +02:00
isccfg Update netmgr, tasks, and applications to use isc_loopmgr 2022-08-26 09:09:24 +02:00
libtest Update netmgr, tasks, and applications to use isc_loopmgr 2022-08-26 09:09:24 +02:00
ns Update netmgr, tasks, and applications to use isc_loopmgr 2022-08-26 09:09:24 +02:00
.gitignore Move all the unit tests to /tests/<libname>/ 2022-05-28 14:53:02 -07:00
Makefile.am Tests and benchmark for isc_ascii 2022-09-12 12:23:39 +01:00
unit-test-driver.sh.in Move all the unit tests to /tests/<libname>/ 2022-05-28 14:53:02 -07:00