bind9/tests
Ondřej Surý 7ad2d6e986
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 15:20:28 +02:00
..
dns Add the new record type WALLET (262) 2024-09-25 12:07:57 +00:00
include/tests Extend ISC_TEST_MAIN for debugging 2024-08-22 06:04:59 +00:00
irs Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
isc Don't enable SO_REUSEADDR on outgoing UDP sockets 2024-10-02 15:20:28 +02:00
isccfg Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
libtest Extend ISC_TEST_MAIN for debugging 2024-08-22 06:04:59 +00:00
ns Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
.gitignore Move all the unit tests to /tests/<libname>/ 2022-05-31 12:06:00 +02:00
Makefile.am Stop the unit tests from running twice 2022-05-31 12:06:00 +02:00
unit-test-driver.sh.in Reformat shell scripts with shfmt 2023-10-26 13:05:00 +02:00