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
ISC Open Source Projects
Kea
Commits
32079328
Commit
32079328
authored
Oct 10, 2013
by
Tomek Mrugalski
🛰
Browse files
[3153] Unrelated change: minor clean-up in DHCPv4 call to hooks
parent
6489d09a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/dhcp4/dhcp4_srv.cc
View file @
32079328
...
...
@@ -201,8 +201,7 @@ Dhcpv4Srv::run() {
// The packet has just been received so contains the uninterpreted wire
// data; execute callouts registered for buffer4_receive.
if
(
HooksManager
::
getHooksManager
()
.
calloutsPresent
(
Hooks
.
hook_index_buffer4_receive_
))
{
if
(
HooksManager
::
calloutsPresent
(
Hooks
.
hook_index_buffer4_receive_
))
{
CalloutHandlePtr
callout_handle
=
getCalloutHandle
(
query
);
// Delete previously set arguments
...
...
@@ -396,8 +395,7 @@ Dhcpv4Srv::run() {
// Option objects modification does not make sense anymore. Hooks
// can only manipulate wire buffer at this stage.
// Let's execute all callouts registered for buffer4_send
if
(
HooksManager
::
getHooksManager
()
.
calloutsPresent
(
Hooks
.
hook_index_buffer4_send_
))
{
if
(
HooksManager
::
calloutsPresent
(
Hooks
.
hook_index_buffer4_send_
))
{
CalloutHandlePtr
callout_handle
=
getCalloutHandle
(
query
);
// Delete previously set arguments
...
...
@@ -931,8 +929,7 @@ Dhcpv4Srv::processRelease(Pkt4Ptr& release) {
bool
skip
=
false
;
// Execute all callouts registered for lease4_release
if
(
HooksManager
::
getHooksManager
()
.
calloutsPresent
(
Hooks
.
hook_index_lease4_release_
))
{
if
(
HooksManager
::
calloutsPresent
(
Hooks
.
hook_index_lease4_release_
))
{
CalloutHandlePtr
callout_handle
=
getCalloutHandle
(
release
);
// Delete all previous arguments
...
...
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