bind9/tests/isc
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
..
testdata/file Move all the unit tests to /tests/<libname>/ 2022-05-31 12:06:00 +02:00
aes_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
buffer_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
counter_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
crc64_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
doh_test.c Don't enable SO_REUSEADDR on outgoing UDP sockets 2024-10-02 15:20:28 +02:00
errno_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
file_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
hash_test.c Move all the unit tests to /tests/<libname>/ 2022-05-31 12:06:00 +02:00
heap_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
hmac_test.c NetBSD has added 'hmac' to libc so rename our uses of hmac 2023-12-14 11:14:04 +11:00
ht_test.c Fix case insensitive matching in isc_ht hash table implementation 2024-02-11 11:23:28 +01:00
lex_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
Makefile.am Add tests/isc/uv_wrap.h to Makefile.am 2022-06-01 17:45:34 +02:00
md_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
mem_test.c Move all the unit tests to /tests/<libname>/ 2022-05-31 12:06:00 +02:00
netaddr_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
netmgr_test.c Fix building netmgr_test with DoH disable 2024-04-29 16:59:26 +03:00
parse_test.c Move all the unit tests to /tests/<libname>/ 2022-05-31 12:06:00 +02:00
pool_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
quota_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
radix_test.c Add regression test for [GL # 4090] 2023-05-29 13:27:51 +10:00
random_test.c Update sources to Clang 15 formatting 2022-11-29 09:14:07 +01:00
regex_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
result_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
safe_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
siphash_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
sockaddr_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
stats_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
symtab_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
task_test.c Fix a data race in isc_task_purgeevent() 2024-05-17 12:08:27 +00:00
taskpool_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
time_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
timer_test.c Don't use reference counting in isc_timer unit 2023-01-18 22:39:26 +01:00
uv_wrap.h Move all the unit tests to /tests/<libname>/ 2022-05-31 12:06:00 +02:00