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
98c85cb6
Commit
98c85cb6
authored
Jul 11, 2013
by
Marcin Siodelski
Browse files
[1555] Open only selected sockets when Kea starts up.
parent
abad8add
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/bin/dhcp4/ctrl_dhcp4_srv.cc
View file @
98c85cb6
...
...
@@ -192,8 +192,13 @@ void ControlledDhcpv4Srv::establishSession() {
try
{
configureDhcp4Server
(
*
this
,
config_session_
->
getFullConfig
());
// Configuration may disable or enable interfaces so we have to
// reopen sockets according to new configuration.
openActiveSockets
(
getPort
(),
useBroadcast
());
}
catch
(
const
DhcpConfigError
&
ex
)
{
LOG_ERROR
(
dhcp4_logger
,
DHCP4_CONFIG_LOAD_FAIL
).
arg
(
ex
.
what
());
}
/// Integrate the asynchronous I/O model of BIND 10 configuration
...
...
src/bin/dhcp6/ctrl_dhcp6_srv.cc
View file @
98c85cb6
...
...
@@ -193,8 +193,13 @@ void ControlledDhcpv6Srv::establishSession() {
try
{
// Pull the full configuration out from the session.
configureDhcp6Server
(
*
this
,
config_session_
->
getFullConfig
());
// Configuration may disable or enable interfaces so we have to
// reopen sockets according to new configuration.
openActiveSockets
(
getPort
());
}
catch
(
const
DhcpConfigError
&
ex
)
{
LOG_ERROR
(
dhcp6_logger
,
DHCP6_CONFIG_LOAD_FAIL
).
arg
(
ex
.
what
());
}
/// Integrate the asynchronous I/O model of BIND 10 configuration
...
...
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