bind9/lib/dns
Michał Kępień 64367010f2
Fix "rndc flushname" for longer name server names
dns_adb_flushname() calls dns_name_hash() to determine the ADB bucket
number to search for the given name.  Meanwhile, all other functions in
lib/dns/adb.c call dns_name_fullhash() for determining the bucket number
instead.  This discrepancy causes dns_adb_flushname() to have virtually
no chances of actually removing the given name from the ADB if the
name is longer than 16 bytes (since dns_name_hash() only hashes the
first 16 bytes of the name provided to it) - more specifically, the
probability of success for names longer than 16 bytes is inversely
proportional to the number of ADB buckets in use, i.e. 1:1021 at best.

Fix by using dns_name_fullhash() instead of dns_name_hash() in
dns_adb_flushname(), so that the logic for determining the bucket number
that a given name belongs to is consistent throughout lib/dns/adb.c.
2025-01-30 07:44:18 +01:00
..
include Limit the additional processing for large RDATA sets 2025-01-15 14:13:45 +01:00
rdata Parse the URI template and check for a dns variable 2024-11-26 03:41:51 +00:00
.gitignore 4394. [func] Add rndc command "dnstap-reopen" to close and 2016-06-24 09:37:04 +10:00
acl.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
adb.c Fix "rndc flushname" for longer name server names 2025-01-30 07:44:18 +01:00
badcache.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
byaddr.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
cache.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
callbacks.c Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
catz.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
client.c Replace linked lists with the hashtables to hold fetch contexts 2025-01-22 15:06:04 +01:00
clientinfo.c refactor dns_clientinfo_init(); use separate function to set ECS 2023-02-08 00:13:12 -08:00
compress.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
db.c use more generic log module name for 'logtoomanyrecords' 2024-11-27 12:34:11 +11:00
dbiterator.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
diff.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
dispatch.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
dlz.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
dns64.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
dnsrps.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
dnssec.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
dnstap.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
dnstap.proto Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
ds.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
dst_api.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
dst_internal.h Replace isc_fsaccess API with more secure file creation 2023-03-31 16:47:15 +02:00
dst_openssl.h Use autoconf check for BN_GENCB_new() 2022-03-02 10:49:47 +00:00
dst_parse.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
dst_parse.h Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
dyndb.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
ecs.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
fixedname.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
forward.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
gen.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
geoip2.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
gssapi_link.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
gssapictx.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
hmac_link.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
ipkeylist.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
iptable.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
journal.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
kasp.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
key.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
keydata.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
keymgr.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
keytable.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
log.c Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
lookup.c Implement global limit for outgoing queries 2024-12-06 15:17:53 +00:00
Makefile.am Update libdns_la_LIBADD rather than libdns_la_LDFLAGS 2022-07-13 10:46:37 +10:00
master.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
masterdump.c Terminate yaml string after negative comment 2025-01-22 23:58:54 +00:00
message.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
name.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
ncache.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
nsec.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
nsec3.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
nta.c Implement global limit for outgoing queries 2024-12-06 15:17:53 +00:00
openssl_link.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
openssl_shim.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
openssl_shim.h Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
openssldh_link.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
opensslecdsa_link.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
openssleddsa_link.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
opensslrsa_link.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
order.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
peer.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
private.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
rbt.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
rbtdb.c Merge tag 'v9.18.33' into bind-9.18 2025-01-29 17:23:11 +01:00
rbtdb.h Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
rcode.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
rdata.c Parse the URI template and check for a dns variable 2024-11-26 03:41:51 +00:00
rdatalist.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
rdatalist_p.h Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
rdataset.c Limit the additional processing for large RDATA sets 2025-01-15 14:13:45 +01:00
rdatasetiter.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
rdataslab.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
request.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
resolver.c Merge tag 'v9.18.33' into bind-9.18 2025-01-29 17:23:11 +01:00
result.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
rootns.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
rpz.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
rriterator.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
rrl.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
sdb.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
sdlz.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
soa.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
ssu.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
ssu_external.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
stats.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
tests Move all the unit tests to /tests/<libname>/ 2022-05-31 12:06:00 +02:00
time.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
tkey.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
transport.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
tsec.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
tsig.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
tsig_p.h Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
ttl.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
update.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
validator.c Use query counters in validator code 2024-12-09 11:44:24 +01:00
view.c Implement 'max-query-count' 2024-12-06 15:17:53 +00:00
xfrin.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
zone.c Implement global limit for outgoing queries 2024-12-06 15:17:53 +00:00
zone_p.h Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
zonekey.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
zoneverify.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
zt.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00