]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Bump DNS_CLIENTINFOMETHODS_VERSION/_AGE to 2/1 in clientinfo.h
authorBrian Conry <bconry@isc.org>
Tue, 18 Jun 2019 19:37:20 +0000 (14:37 -0500)
committerOndřej Surý <ondrej@sury.org>
Thu, 20 Jun 2019 12:24:29 +0000 (14:24 +0200)
BIND 9.11.0 has bumped DNS_CLIENTINFOMETHODS_VERSION and _AGE to
version 2 and 1 in the dlz_minimal.h because a member was addet to the
dnsclientinfo struct.  It was found out that the new member is not
used anywhere and there are no accessor functions therefore the change
was reverted.

Later on, it was found out that the revert caused some problems to the
users of BIND 9, and thus this changes takes a different approach by
syncing the values other way around.

(cherry picked from commit 39344dfb3e7a7a734c5d830f18884a636bfd6f5d)

lib/dns/include/dns/clientinfo.h

index 30e29c88015165698e773027db7b3d70f2b4f52e..1d85ec45bf2bcfd8092b14a430b0a52fd6cb0c28 100644 (file)
@@ -58,8 +58,8 @@ typedef struct dns_clientinfo {
 typedef isc_result_t (*dns_clientinfo_sourceip_t)(dns_clientinfo_t *client,
                                                  isc_sockaddr_t **addrp);
 
-#define DNS_CLIENTINFOMETHODS_VERSION 1
-#define DNS_CLIENTINFOMETHODS_AGE 0
+#define DNS_CLIENTINFOMETHODS_VERSION 2
+#define DNS_CLIENTINFOMETHODS_AGE 1
 
 typedef struct dns_clientinfomethods {
        uint16_t version;