summaryrefslogtreecommitdiffstats
path: root/src/lib/dhcpsrv/host.cc
diff options
context:
space:
mode:
authorRazvan Becheriu <razvan@isc.org>2023-06-29 13:56:19 +0200
committerRazvan Becheriu <razvan@isc.org>2023-06-29 19:54:14 +0200
commitf3706a575ec6602149fd7a28665025426ae37f65 (patch)
tree0ec7bdf63fc423a6c7e2a8ddc7fdcd162a4d9d87 /src/lib/dhcpsrv/host.cc
parent[#2725] added unittests (diff)
downloadkea-f3706a575ec6602149fd7a28665025426ae37f65.tar.xz
kea-f3706a575ec6602149fd7a28665025426ae37f65.zip
[#2725] disable strict prefixlen checks in ctrs
Diffstat (limited to 'src/lib/dhcpsrv/host.cc')
-rw-r--r--src/lib/dhcpsrv/host.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/dhcpsrv/host.cc b/src/lib/dhcpsrv/host.cc
index 0f9c4212ef..458d100810 100644
--- a/src/lib/dhcpsrv/host.cc
+++ b/src/lib/dhcpsrv/host.cc
@@ -106,7 +106,9 @@ IPv6Resrv::set(const Type& type, const asiolink::IOAddress& prefix,
isc_throw(isc::BadValue, "invalid prefix length '"
<< static_cast<int>(prefix_len)
<< "' for reserved IPv6 address, expected 128");
- } else if ((type == TYPE_PD) && (prefix_len != 128)) {
+ }
+ /* uncomment if strict prefix and prefix length is required. see #2943
+ else if ((type == TYPE_PD) && (prefix_len != 128)) {
IOAddress first_address = firstAddrInPrefix(prefix, prefix_len);
if (first_address != prefix) {
isc_throw(BadValue, "Invalid host address boundaries: " << prefix
@@ -114,6 +116,7 @@ IPv6Resrv::set(const Type& type, const asiolink::IOAddress& prefix,
<< "/" << static_cast<uint32_t>(prefix_len));
}
}
+ */
type_ = type;
prefix_ = prefix;