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
b97f9a1f
Commit
b97f9a1f
authored
Jul 14, 2017
by
Francis Dupont
Browse files
[5333] Added a closeSockets before clearInterfaces
parent
1b27ce48
Changes
1
Show whitespace changes
Inline
Side-by-side
src/lib/dhcpsrv/parsers/ifaces_config_parser.cc
View file @
b97f9a1f
...
@@ -45,6 +45,9 @@ IfacesConfigParser::parse(const CfgIfacePtr& cfg,
...
@@ -45,6 +45,9 @@ IfacesConfigParser::parse(const CfgIfacePtr& cfg,
bool
re_detect
=
getBoolean
(
ifaces_config
,
"re-detect"
);
bool
re_detect
=
getBoolean
(
ifaces_config
,
"re-detect"
);
cfg
->
setReDetect
(
re_detect
);
cfg
->
setReDetect
(
re_detect
);
if
(
re_detect
)
{
if
(
re_detect
)
{
// Interface clear will drop opened socket information
// so close them if the caller did not.
IfaceMgr
::
instance
().
closeSockets
();
IfaceMgr
::
instance
().
clearIfaces
();
IfaceMgr
::
instance
().
clearIfaces
();
IfaceMgr
::
instance
().
detectIfaces
();
IfaceMgr
::
instance
().
detectIfaces
();
}
}
...
...
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