Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
f86883c8
Commit
f86883c8
authored
Mar 05, 2015
by
Marcin Siodelski
Browse files
[3694] Swap in-pool checks with the host reservation checks in alloc engine.
parent
1dfb8b31
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/dhcpsrv/alloc_engine.cc
View file @
f86883c8
...
...
@@ -1384,8 +1384,8 @@ AllocEngine::discoverLease4(AllocEngine::ClientContext4& ctx) {
// reserved for another client, and must be in the range of the
// dynamic pool.
if
(
!
new_lease
&&
!
ctx
.
requested_address_
.
isV4Zero
()
&&
!
addressReserved
(
ctx
.
requested_address_
,
ctx
)
&&
ctx
.
subnet_
->
inPool
(
Lease
::
TYPE_V4
,
ctx
.
requested_address_
))
{
ctx
.
subnet_
->
inPool
(
Lease
::
TYPE_V4
,
ctx
.
requested_address_
)
&&
!
addressReserved
(
ctx
.
requested_address_
,
ctx
))
{
new_lease
=
allocateOrReuseLease4
(
ctx
.
requested_address_
,
ctx
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment