Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
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
a076d799
Commit
a076d799
authored
Jul 16, 2013
by
Tomek Mrugalski
🛰
Browse files
[2994] Compilation fix in Dhcp4Srv
parent
01bb436c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/dhcp4/dhcp4_srv.cc
View file @
a076d799
...
...
@@ -608,12 +608,15 @@ Dhcpv4Srv::assignLease(const Pkt4Ptr& question, Pkt4Ptr& answer) {
// allocation.
bool
fake_allocation
=
(
question
->
getType
()
==
DHCPDISCOVER
);
CalloutHandlePtr
callout_handle
=
getCalloutHandle
(
question
);
// Use allocation engine to pick a lease for this client. Allocation engine
// will try to honour the hint, but it is just a hint - some other address
// may be used instead. If fake_allocation is set to false, the lease will
// be inserted into the LeaseMgr as well.
Lease4Ptr
lease
=
alloc_engine_
->
allocateAddress4
(
subnet
,
client_id
,
hwaddr
,
hint
,
fake_allocation
);
hint
,
fake_allocation
,
callout_handle
);
if
(
lease
)
{
// We have a lease! Let's set it in the packet and send it back to
...
...
Write
Preview
Markdown
is supported
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