bind9/lib
Michał Kępień d27f96cc98 Ensure server-specific "edns-udp-size" is obeyed
If "edns-udp-size" is set in a "server" block matching the queried
server, it is accounted for in the process of determining the advertised
UDP buffer size, but its value may still be overridden before the query
is sent.  This behavior contradicts the ARM which claims that when set,
the server-specific "edns-udp-size" value is used for all EDNS queries
sent to a given server.

Furthermore, calling dns_peer_getudpsize() with the "udpsize" variable
as an argument makes the code hard to follow as that call may either
update the value of "udpsize" or leave it untouched.

Ensure the code matches the documentation by moving the
dns_peer_getudpsize() call below all other blocks of code potentially
affecting the advertised UDP buffer size, which is where it was located
when server-specific "edns-udp-size" support was first implemented [1].
Improve code readability by calling dns_peer_getudpsize() with a helper
variable instead of "udpsize".

[1] see commit 1c153afce5
2020-05-25 14:34:56 +02:00
..
bind9 allow per type record counts to be specified 2020-05-13 15:35:28 +10:00
dns Ensure server-specific "edns-udp-size" is obeyed 2020-05-25 14:34:56 +02:00
irs Provide unit test driver 2020-05-21 12:13:01 +02:00
isc Provide unit test driver 2020-05-21 12:13:01 +02:00
isccc Provide unit test driver 2020-05-21 12:13:01 +02:00
isccfg Provide unit test driver 2020-05-21 12:13:01 +02:00
ns Provide unit test driver 2020-05-21 12:13:01 +02:00
samples Cleanup libirs APIs and slim down the library to just irs_resconf 2020-04-24 08:33:34 +02:00
win32/bindevt Disable MSB8028 warning 2020-04-15 13:37:12 +02:00
.gitignore Provide unit test driver 2020-05-21 12:13:01 +02:00
Makefile.am Complete rewrite the BIND 9 build system 2020-04-21 14:19:48 +02:00
unit-test-driver.sh.in Provide unit test driver 2020-05-21 12:13:01 +02:00