[9.20] chg: usr: Record query time for all dnstap responses

Not all DNS responses had the query time set in their corresponding
dnstap messages. This has been fixed.

Closes #3695

Backport of MR !11527

Merge branch 'backport-3695-record-query-time-for-all-dnstap-responses-9.20' into 'bind-9.20'

See merge request isc-projects/bind9!11534
This commit is contained in:
Michał Kępień 2026-02-06 16:57:06 +01:00
commit f4fdcee03f

View file

@ -781,15 +781,6 @@ dns_dt_send(dns_view_t *view, dns_dtmsgtype_t msgtype, isc_sockaddr_t *qaddr,
dm.m.has_response_time_sec = 1;
dm.m.response_time_nsec = isc_time_nanoseconds(t);
dm.m.has_response_time_nsec = 1;
/*
* Types RR and FR can fall through and get the query
* time set as well. Any other response type, break.
*/
if (msgtype != DNS_DTTYPE_RR && msgtype != DNS_DTTYPE_FR) {
break;
}
FALLTHROUGH;
case DNS_DTTYPE_AQ:
case DNS_DTTYPE_CQ: