]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Record query time for all dnstap responses
authorMark Andrews <marka@isc.org>
Fri, 6 Feb 2026 01:52:55 +0000 (12:52 +1100)
committerMichał Kępień <michal@isc.org>
Fri, 6 Feb 2026 14:38:48 +0000 (15:38 +0100)
The description in the protobuf specification is not a list of request
types to process but rather a list of examples to qualify the
description of whether the time indicates when the message is received
or sent.

lib/dns/dnstap.c

index 087dc5cebb1934bbc959cd82e96ecb65ac77915c..80290c54adbe1e3e19bca5cf0d67dd5dae5bada1 100644 (file)
@@ -778,15 +778,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: