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
93de5f0c
Commit
93de5f0c
authored
Aug 11, 2014
by
Marcin Siodelski
Browse files
[3487] Ignore loopback interfaces when opening sockets.
parent
fdc4cee6
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/bin/dhcp4/dhcp4_srv.cc
View file @
93de5f0c
...
...
@@ -1806,7 +1806,11 @@ Dhcpv4Srv::openActiveSockets(const uint16_t port,
<<
" instance of the interface when DHCPv4 server was"
<<
" trying to reopen sockets after reconfiguration"
);
}
if
(
CfgMgr
::
instance
().
isActiveIface
(
iface
->
getName
()))
{
// Ignore loopback interfaces.
if
(
iface_ptr
->
flag_loopback_
)
{
iface_ptr
->
inactive4_
=
true
;
}
else
if
(
CfgMgr
::
instance
().
isActiveIface
(
iface
->
getName
()))
{
iface_ptr
->
inactive4_
=
false
;
LOG_INFO
(
dhcp4_logger
,
DHCP4_ACTIVATE_INTERFACE
)
.
arg
(
iface
->
getFullName
());
...
...
src/bin/dhcp6/dhcp6_srv.cc
View file @
93de5f0c
...
...
@@ -2440,7 +2440,12 @@ Dhcpv6Srv::openActiveSockets(const uint16_t port) {
<<
" instance of the interface when DHCPv6 server was"
<<
" trying to reopen sockets after reconfiguration"
);
}
if
(
CfgMgr
::
instance
().
isActiveIface
(
iface
->
getName
()))
{
// Ignore loopback interfaces.
if
(
iface_ptr
->
flag_loopback_
)
{
iface_ptr
->
inactive6_
=
true
;
}
else
if
(
CfgMgr
::
instance
().
isActiveIface
(
iface
->
getName
()))
{
iface_ptr
->
inactive6_
=
false
;
LOG_INFO
(
dhcp6_logger
,
DHCP6_ACTIVATE_INTERFACE
)
.
arg
(
iface
->
getFullName
());
...
...
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