Blame SOURCES/dhcp-bind-9.11.patch

c262a1
From ffb24c0bbd4d6f2b4718a1a8f4f2da237cc6ed66 Mon Sep 17 00:00:00 2001
c262a1
From: Thomas Markwalder <tmark@isc.org>
c262a1
Date: Fri, 14 Sep 2018 13:41:41 -0400
c262a1
Subject: [PATCH] [master] Added includes of new BIND9 compatibility headers,
c262a1
 updated util/bind.sh
c262a1
c262a1
    Merges in rt48072.
c262a1
c262a1
(cherry picked from commit 8194daabfd590f17825f0c61e9534bee5c99cc86)
c262a1
---
c262a1
 includes/omapip/isclib.h |  3 +++
c262a1
 includes/omapip/result.h |  1 +
c262a1
 server/dhcpv6.c          | 13 +++++++++----
c262a1
 3 files changed, 13 insertions(+), 4 deletions(-)
c262a1
c262a1
diff --git a/includes/omapip/isclib.h b/includes/omapip/isclib.h
c262a1
index e2963089..fa5d9ad3 100644
c262a1
--- a/includes/omapip/isclib.h
c262a1
+++ b/includes/omapip/isclib.h
c262a1
@@ -48,6 +48,9 @@
c262a1
 #include <string.h>
c262a1
 #include <netdb.h>
c262a1
 
c262a1
+#include <isc/boolean.h>
c262a1
+#include <isc/int.h>
c262a1
+
c262a1
 #include <isc/buffer.h>
c262a1
 #include <isc/lex.h>
c262a1
 #include <isc/lib.h>
c262a1
diff --git a/includes/omapip/result.h b/includes/omapip/result.h
c262a1
index ae5f7d6a..9c1fab23 100644
c262a1
--- a/includes/omapip/result.h
c262a1
+++ b/includes/omapip/result.h
c262a1
@@ -26,6 +26,7 @@
c262a1
 #ifndef DHCP_RESULT_H
c262a1
 #define DHCP_RESULT_H 1
c262a1
 
c262a1
+#include <isc/boolean.h>
c262a1
 #include <isc/lang.h>
c262a1
 #include <isc/resultclass.h>
c262a1
 #include <isc/types.h>
c262a1
diff --git a/server/dhcpv6.c b/server/dhcpv6.c
c262a1
index 74487667..1a6ff241 100644
c262a1
--- a/server/dhcpv6.c
c262a1
+++ b/server/dhcpv6.c
c262a1
@@ -1003,7 +1003,8 @@ void check_pool6_threshold(struct reply_state *reply,
c262a1
 				  shared_name,
c262a1
 				  inet_ntop(AF_INET6, &lease->addr,
c262a1
 					    tmp_addr, sizeof(tmp_addr)),
c262a1
-				  used, count);
c262a1
+				  (long long unsigned)(used),
c262a1
+				  (long long unsigned)(count));
c262a1
 		}
c262a1
 		return;
c262a1
 	}
c262a1
@@ -1035,7 +1036,8 @@ void check_pool6_threshold(struct reply_state *reply,
c262a1
 		  "address: %s; high threshold %d%% %llu/%llu.",
c262a1
 		  shared_name,
c262a1
 		  inet_ntop(AF_INET6, &lease->addr, tmp_addr, sizeof(tmp_addr)),
c262a1
-		  poolhigh, used, count);
c262a1
+		  poolhigh, (long long unsigned)(used),
c262a1
+		  (long long unsigned)(count));
c262a1
 
c262a1
 	/* handle the low threshold now, if we don't
c262a1
 	 * have one we default to 0. */
c262a1
@@ -1383,12 +1385,15 @@ pick_v6_address(struct reply_state *reply)
c262a1
 		log_debug("Unable to pick client address: "
c262a1
 			  "no addresses available  - shared network %s: "
c262a1
 			  " 2^64-1 < total, %llu active,  %llu abandoned",
c262a1
-			  shared_name, active - abandoned, abandoned);
c262a1
+			  shared_name, (long long unsigned)(active - abandoned),
c262a1
+			  (long long unsigned)(abandoned));
c262a1
 	} else {
c262a1
 		log_debug("Unable to pick client address: "
c262a1
 			  "no addresses available  - shared network %s: "
c262a1
 			  "%llu total, %llu active,  %llu abandoned",
c262a1
-			  shared_name, total, active - abandoned, abandoned);
c262a1
+			  shared_name, (long long unsigned)(total),
c262a1
+			  (long long unsigned)(active - abandoned),
c262a1
+		          (long long unsigned)(abandoned));
c262a1
 	}
c262a1
 
c262a1
 	return ISC_R_NORESOURCES;
c262a1
-- 
c262a1
2.14.5