bind9/tests
Ondřej Surý 4b4c550cd8 Don't enable SO_REUSEADDR on outgoing UDP sockets
Currently, the outgoing UDP sockets have enabled
SO_REUSEADDR (SO_REUSEPORT on BSDs) which allows multiple UDP sockets to
bind to the same address+port.  There's one caveat though - only a
single (the last one) socket is going to receive all the incoming
traffic.  This in turn could lead to incoming DNS message matching to
invalid dns_dispatch and getting dropped.

Disable setting the SO_REUSEADDR on the outgoing UDP sockets.  This
needs to be done explicitly because `uv_udp_open()` silently enables the
option on the socket.

(cherry picked from commit eec30c33c2)
2024-10-02 12:16:58 +00:00
..
bench Use clang-format-19 to update formatting 2024-08-22 08:16:03 +00:00
dns Add the new record type WALLET (262) 2024-09-25 12:07:52 +00:00
include/tests Extend ISC_TEST_MAIN for debugging 2024-08-22 11:34:42 +10:00
irs Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:12:23 +02:00
isc Don't enable SO_REUSEADDR on outgoing UDP sockets 2024-10-02 12:16:58 +00:00
isccfg Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:12:23 +02:00
libtest Extend ISC_TEST_MAIN for debugging 2024-08-22 11:34:42 +10:00
ns Remove ns_query_init() cannot fail, remove the error paths 2024-07-03 09:05:51 +02:00
.gitignore Move all the unit tests to /tests/<libname>/ 2022-05-28 14:53:02 -07:00
Makefile.am Build libtest even if CMOCKA is not available 2023-03-29 02:29:18 +00:00
unit-test-driver.sh.in Reformat shell scripts with shfmt 2023-10-26 10:23:50 +02:00