bind9/lib/dns/include/dns
Matthijs Mekking 667d81b52b Make serve-stale refresh behave as prefetch
A serve-stale refresh is similar to a prefetch, the only difference
is when it triggers. Where a prefetch is done when an RRset is about
to expire, a serve-stale refresh is done when the RRset is already
stale.

This means that the check for the stale-refresh window needs to
move into query_stale_refresh(). We need to clear the
DNS_DBFIND_STALEENABLED option at the same places as where we clear
DNS_DBFIND_STALETIMEOUT.

Now that serve-stale refresh acts the same as prefetch, there is no
worry that the same rdataset is added to the message twice. This makes
some code obsolete, specifically where we need to clear rdatasets from
the message.

(cherry picked from commit a66b04c8d4)
2025-07-23 12:12:51 +00:00
..
acl.h Convert rwlock in dns_acl to RCU 2023-10-13 14:44:40 +02:00
adb.h Implement global limit for outgoing queries 2024-12-06 06:20:33 +00:00
badcache.h Improve the badcache cleaning by adding LRU and using RCU 2024-11-27 17:07:03 +00:00
bit.h Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
byaddr.h remove isc_task completely 2023-02-16 18:35:32 +01:00
cache.h Add a limit to the number of RR types for single name 2024-06-10 16:55:09 +02:00
callbacks.h add setup/commit functions to rdatacallbacks 2024-03-08 15:36:56 -08:00
catz.h Reconfigure catz member zones during named reconfiguration 2024-08-13 16:57:50 +02:00
cert.h Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
client.h Add +maxtotalqueries option to delv 2024-12-06 06:20:33 +00:00
clientinfo.h Move contributed DLZ modules into a separate repository 2024-11-26 16:24:17 +01:00
compress.h Remove redundant parentheses from the return statement 2024-11-19 14:26:52 +01:00
db.h Revert "Fix the glue table in the QP and RBT zone databases" 2025-01-06 14:00:43 +01:00
dbiterator.h make the qpzone database dumpable 2024-03-08 15:36:56 -08:00
diff.h Incrementally apply AXFR transfer 2024-11-26 07:17:06 +00:00
dispatch.h Fix TCP dispatches and transport 2024-10-24 01:21:37 +00:00
dlz.h Update clang to version 14 2022-06-16 17:21:11 +02:00
dlz_dlopen.h Update clang to version 14 2022-06-16 17:21:11 +02:00
dns64.h Add the ability to use DNS64 internally 2023-09-13 14:31:43 +10:00
dnsrps.h Give the rdataset->privateN fields more helpful names 2023-07-17 14:50:25 +02:00
dnssec.h dnssec-signzone retain signature if key is offline 2025-01-23 14:04:03 +00:00
dnstap.h Emit and read correct DoT and DoH dnstap entries 2024-04-26 16:12:29 +03:00
ds.h Warn about deprecated DNSKEY and DS algorithms / digest types 2025-07-16 01:39:58 +10:00
dsdigest.h Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
dyndb.h remove isc_task completely 2023-02-16 18:35:32 +01:00
ecs.h Move contributed DLZ modules into a separate repository 2024-11-26 16:24:17 +01:00
ede.h detect dup EDE with bitmap and store next pos 2025-01-30 12:37:55 +00:00
edns.h Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
fixedname.h Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
forward.h reduce memory consumption of the remaining QP databases 2024-03-14 10:25:07 -07:00
geoip.h Update clang to version 14 2022-06-16 17:21:11 +02:00
ipkeylist.h remove nonfunctional DSCP implementation 2023-01-09 12:15:21 -08:00
iptable.h Convert manual dns_iptable_{attach,detach} to ISC_REFCOUNT_IMPL 2023-10-13 14:44:40 +02:00
journal.h Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
kasp.h Add the concept of allowed key tag ranges to kasp 2024-08-23 07:44:13 +10:00
keydata.h Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
keyflags.h Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
keymgr.h Fix spurious missing key files log messages 2025-06-19 11:42:04 +02:00
keystore.h Replace keystore attach/detach with ISC_REFCOUNT_IMPL/ISC_REFCOUNT_DECL 2024-01-25 15:37:40 +01:00
keytable.h Reformat sources with up-to-date clang-format-17 2023-11-13 16:52:35 +01:00
keyvalues.h Tidy up keyvalue.h definitions 2025-03-25 06:40:49 +00:00
librpz.h Use clang-format-20 to update formatting 2025-06-25 13:32:08 +10:00
log.h remove {root-}delegation-only 2023-03-23 12:57:01 -07:00
master.h Fix a typo in dns/master.h 2025-01-08 15:21:28 +00:00
masterdump.h remove unused functions in dns_master 2023-12-06 17:31:38 -08:00
message.h Add CO support to dig 2025-06-13 20:31:31 +10:00
name.h Optimize memory layout of core structs 2024-12-09 09:04:28 +01:00
nametree.h Don't undef <unit>_TRACE, instead add comment how to enable it 2023-10-13 11:40:16 +02:00
ncache.h Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
nsec.h Wait with NSEC3 during a DNSSEC policy change 2022-08-22 15:55:46 +02:00
nsec3.h Lower the maximum allowed NSEC3 iterations to 50 2023-12-05 14:58:58 +00:00
nta.h Don't undef <unit>_TRACE, instead add comment how to enable it 2023-10-13 11:40:16 +02:00
opcode.h Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
order.h Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
peer.h remove nonfunctional DSCP implementation 2023-01-09 12:15:21 -08:00
private.h Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
qp.h Remove dns_qpmulti_lockedread declaration 2025-03-25 06:02:17 +00:00
rbt.h Reduce lock contention during RBTDB tree pruning 2024-02-29 11:23:03 +01:00
rcode.h Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
rdata.h Optimize memory layout of core structs 2024-12-09 09:04:28 +01:00
rdataclass.h Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
rdatalist.h Implement dns_db node tracing 2023-02-28 11:44:15 +01:00
rdataset.h Make serve-stale refresh behave as prefetch 2025-07-23 12:12:51 +00:00
rdatasetiter.h Reformat sources with up-to-date clang-format-17 2023-11-13 16:52:35 +01:00
rdataslab.h Preserve brackets in DNS_SLABHEADER_GETATTR macro 2025-06-25 13:26:13 +10:00
rdatatype.h separate generic DB helpers into db_p.h 2024-02-14 09:00:27 +01:00
remote.h remove nonfunctional DSCP implementation 2023-01-09 12:15:21 -08:00
request.h Don't undef <unit>_TRACE, instead add comment how to enable it 2023-10-13 11:40:16 +02:00
resolver.h Split and simplify the use of EDE list implementation 2025-01-30 12:37:55 +00:00
result.h Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
rootns.h Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
rpz.h Update sources to Clang 18 formatting 2024-04-23 13:11:52 +02:00
rriterator.h Update clang to version 14 2022-06-16 17:21:11 +02:00
rrl.h Fix RRL responses-per-second bypass using wildcard names 2022-09-08 09:15:30 +02:00
sdlz.h Update clang to version 14 2022-06-16 17:21:11 +02:00
secalg.h Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
secproto.h Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
skr.h Use archived version of draft-icann-dnssec-keymgmt-01.txt 2025-01-28 13:41:05 +00:00
soa.h Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
ssu.h Add isc_rwlock around dns_aclenv .localhost and .localnets member 2022-04-04 19:27:00 +02:00
stats.h Update the source code formatting using clang-format-17 2023-10-17 17:47:46 +02:00
time.h Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
tkey.h minor tkey-related fixups 2023-06-14 08:14:38 +00:00
trace.h Replace __attribute__((unused)) with ISC_ATTR_UNUSED attribute macro 2023-03-30 23:29:25 +02:00
transport.h Integrate TLS cipher suites support into BIND 2024-01-12 13:27:59 +02:00
tsig.h Prevent assertion when processing TSIG algorithm 2025-05-07 13:45:48 +02:00
ttl.h Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
types.h Rewrite the GLUE cache in QP zone database 2025-01-06 14:00:47 +01:00
update.h Reformat sources with up-to-date clang-format-17 2023-11-13 16:52:35 +01:00
validator.h Add static ede context into each validator layer 2025-04-02 16:42:23 +00:00
view.h Implement sig0key-checks-limit and sig0message-checks-limit 2025-02-20 14:48:01 +00:00
xfrin.h Expose the incoming transfers' rates in the statistics channel 2025-02-20 11:05:09 +00:00
zone.h Prepare a zone for shutting down when deleting it from a view 2025-05-28 18:30:45 +00:00
zonekey.h Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
zoneverify.h Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
zt.h The zone table no longer depends on the loop manager 2023-05-12 20:48:31 +01:00