Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
ecd9691c
Commit
ecd9691c
authored
Jul 16, 2013
by
Tomek Mrugalski
🛰
Browse files
[2994] Comments fixes in Dhcpv4Srv and AllocEngine code.
parent
2cbcb533
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/bin/dhcp4/tests/dhcp4_srv_unittest.cc
View file @
ecd9691c
...
...
@@ -1626,6 +1626,7 @@ TEST_F(Dhcpv4SrvTest, ServerID) {
/// selectSubnetAddr, selectSubnetIface, selectSubnetRelayLinkaddr,
/// selectSubnetRelayInterfaceId. Note that the concept of interface-id is not
/// present in the DHCPv4, so not everything is applicable directly.
/// See ticket #3057
// Checks if hooks are registered properly.
TEST_F
(
Dhcpv4SrvTest
,
Hooks
)
{
...
...
src/lib/dhcpsrv/alloc_engine.cc
View file @
ecd9691c
...
...
@@ -518,7 +518,7 @@ Lease6Ptr AllocEngine::reuseExpiredLease(Lease6Ptr& expired,
// Callouts decided to skip the action. This means that the lease is not
// assigned, so the client will get NoAddrAvail as a result. The lease
// won't be inserted into the
// won't be inserted into the
database.
if
(
callout_handle
->
getSkip
())
{
LOG_DEBUG
(
dhcpsrv_logger
,
DHCPSRV_DBG_HOOKS
,
DHCPSRV_HOOK_LEASE6_SELECT_SKIP
);
return
(
Lease6Ptr
());
...
...
@@ -596,7 +596,7 @@ Lease4Ptr AllocEngine::reuseExpiredLease(Lease4Ptr& expired,
// Callouts decided to skip the action. This means that the lease is not
// assigned, so the client will get NoAddrAvail as a result. The lease
// won't be inserted into the
// won't be inserted into the
database.
if
(
callout_handle
->
getSkip
())
{
LOG_DEBUG
(
dhcpsrv_logger
,
DHCPSRV_DBG_HOOKS
,
DHCPSRV_HOOK_LEASE4_SELECT_SKIP
);
return
(
Lease4Ptr
());
...
...
@@ -655,7 +655,7 @@ Lease6Ptr AllocEngine::createLease6(const Subnet6Ptr& subnet,
// Callouts decided to skip the action. This means that the lease is not
// assigned, so the client will get NoAddrAvail as a result. The lease
// won't be inserted into the
// won't be inserted into the
database.
if
(
callout_handle
->
getSkip
())
{
LOG_DEBUG
(
dhcpsrv_logger
,
DHCPSRV_DBG_HOOKS
,
DHCPSRV_HOOK_LEASE6_SELECT_SKIP
);
return
(
Lease6Ptr
());
...
...
@@ -746,7 +746,7 @@ Lease4Ptr AllocEngine::createLease4(const SubnetPtr& subnet,
// Callouts decided to skip the action. This means that the lease is not
// assigned, so the client will get NoAddrAvail as a result. The lease
// won't be inserted into the
// won't be inserted into the
database.
if
(
callout_handle
->
getSkip
())
{
LOG_DEBUG
(
dhcpsrv_logger
,
DHCPSRV_DBG_HOOKS
,
DHCPSRV_HOOK_LEASE4_SELECT_SKIP
);
return
(
Lease4Ptr
());
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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