mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 13:09:50 +00:00
dhcp: Replace OE specific patch for compatibility with latest bind with upstream patch
This also fixes a dhcp breakage noticed by Enrico Scholz. (From OE-Core rev: 5deab12cdcf1d7372634324e1fd70145ff59f9f9) Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
458009f31a
commit
36fa7fce02
-2882
File diff suppressed because it is too large
Load Diff
+79
@@ -0,0 +1,79 @@
|
|||||||
|
From 8194daabfd590f17825f0c61e9534bee5c99cc86 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Thomas Markwalder <tmark@isc.org>
|
||||||
|
Date: Fri, 14 Sep 2018 13:41:41 -0400
|
||||||
|
Subject: [master] Added includes of new BIND9 compatibility headers
|
||||||
|
|
||||||
|
Merges in rt48072.
|
||||||
|
|
||||||
|
Upstream-Status: Backport
|
||||||
|
Signed-off-by: Adrian Bunk <bunk@stusta.de>
|
||||||
|
|
||||||
|
diff --git a/includes/omapip/isclib.h b/includes/omapip/isclib.h
|
||||||
|
index 75a87ff6..538b927f 100644
|
||||||
|
--- a/includes/omapip/isclib.h
|
||||||
|
+++ b/includes/omapip/isclib.h
|
||||||
|
@@ -48,6 +48,9 @@
|
||||||
|
#include <string.h>
|
||||||
|
#include <netdb.h>
|
||||||
|
|
||||||
|
+#include <isc/boolean.h>
|
||||||
|
+#include <isc/int.h>
|
||||||
|
+
|
||||||
|
#include <isc/buffer.h>
|
||||||
|
#include <isc/lex.h>
|
||||||
|
#include <isc/lib.h>
|
||||||
|
diff --git a/includes/omapip/result.h b/includes/omapip/result.h
|
||||||
|
index 91243e1b..860298f6 100644
|
||||||
|
--- a/includes/omapip/result.h
|
||||||
|
+++ b/includes/omapip/result.h
|
||||||
|
@@ -26,6 +26,7 @@
|
||||||
|
#ifndef DHCP_RESULT_H
|
||||||
|
#define DHCP_RESULT_H 1
|
||||||
|
|
||||||
|
+#include <isc/boolean.h>
|
||||||
|
#include <isc/lang.h>
|
||||||
|
#include <isc/resultclass.h>
|
||||||
|
#include <isc/types.h>
|
||||||
|
diff --git a/server/dhcpv6.c b/server/dhcpv6.c
|
||||||
|
index a7110f98..cde4f617 100644
|
||||||
|
--- a/server/dhcpv6.c
|
||||||
|
+++ b/server/dhcpv6.c
|
||||||
|
@@ -1034,7 +1034,8 @@ void check_pool6_threshold(struct reply_state *reply,
|
||||||
|
shared_name,
|
||||||
|
inet_ntop(AF_INET6, &lease->addr,
|
||||||
|
tmp_addr, sizeof(tmp_addr)),
|
||||||
|
- used, count);
|
||||||
|
+ (long long unsigned)(used),
|
||||||
|
+ (long long unsigned)(count));
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
@@ -1066,7 +1067,8 @@ void check_pool6_threshold(struct reply_state *reply,
|
||||||
|
"address: %s; high threshold %d%% %llu/%llu.",
|
||||||
|
shared_name,
|
||||||
|
inet_ntop(AF_INET6, &lease->addr, tmp_addr, sizeof(tmp_addr)),
|
||||||
|
- poolhigh, used, count);
|
||||||
|
+ poolhigh, (long long unsigned)(used),
|
||||||
|
+ (long long unsigned)(count));
|
||||||
|
|
||||||
|
/* handle the low threshold now, if we don't
|
||||||
|
* have one we default to 0. */
|
||||||
|
@@ -1436,12 +1438,15 @@ pick_v6_address(struct reply_state *reply)
|
||||||
|
log_debug("Unable to pick client address: "
|
||||||
|
"no addresses available - shared network %s: "
|
||||||
|
" 2^64-1 < total, %llu active, %llu abandoned",
|
||||||
|
- shared_name, active - abandoned, abandoned);
|
||||||
|
+ shared_name, (long long unsigned)(active - abandoned),
|
||||||
|
+ (long long unsigned)(abandoned));
|
||||||
|
} else {
|
||||||
|
log_debug("Unable to pick client address: "
|
||||||
|
"no addresses available - shared network %s: "
|
||||||
|
"%llu total, %llu active, %llu abandoned",
|
||||||
|
- shared_name, total, active - abandoned, abandoned);
|
||||||
|
+ shared_name, (long long unsigned)(total),
|
||||||
|
+ (long long unsigned)(active - abandoned),
|
||||||
|
+ (long long unsigned)(abandoned));
|
||||||
|
}
|
||||||
|
|
||||||
|
return ISC_R_NORESOURCES;
|
||||||
|
|
||||||
@@ -10,7 +10,7 @@ SRC_URI += "file://0001-define-macro-_PATH_DHCPD_CONF-and-_PATH_DHCLIENT_CON.pat
|
|||||||
file://0009-remove-dhclient-script-bash-dependency.patch \
|
file://0009-remove-dhclient-script-bash-dependency.patch \
|
||||||
file://0012-dhcp-correct-the-intention-for-xml2-lib-search.patch \
|
file://0012-dhcp-correct-the-intention-for-xml2-lib-search.patch \
|
||||||
file://0013-fixup_use_libbind.patch \
|
file://0013-fixup_use_libbind.patch \
|
||||||
file://0001-dhcpd-fix-Replace-custom-isc_boolean_t-with-C-standa.patch \
|
file://0001-master-Added-includes-of-new-BIND9-compatibility-hea.patch \
|
||||||
"
|
"
|
||||||
|
|
||||||
SRC_URI[md5sum] = "18c7f4dcbb0a63df25098216d47b1ede"
|
SRC_URI[md5sum] = "18c7f4dcbb0a63df25098216d47b1ede"
|
||||||
|
|||||||
Reference in New Issue
Block a user