2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 05:55:28 +00:00

[#2725] add check for prefixlen for non pd type

This commit is contained in:
Razvan Becheriu
2023-06-20 19:35:14 +03:00
parent b282f113a2
commit 3810b6527d
19 changed files with 267 additions and 221 deletions

View File

@@ -1669,6 +1669,10 @@ public:
<< "allowed.");
}
if (type != Lease::TYPE_PD) {
prefix_len_ = 128;
}
// Set up DUID,
DuidPtr duid_ptr(new DUID(duid_buffer_, duid_length_));