Commit 90bb56b1 authored by Tomek Mrugalski's avatar Tomek Mrugalski 🛰
Browse files

[2414] IfaceMgr now binds link-local addresses only.

parent ae8d436d
......@@ -247,6 +247,15 @@ bool IfaceMgr::openSockets6(const uint16_t port) {
continue;
}
// Bind link-local addresses only. Otherwise we bind several sockets
// on interfaces that have several global addresses. For examples
// with interface with 2 global addresses, we would bind 3 sockets
// (one for link-local and two for global). That would result in
// getting each message 3 times.
if (!addr->getAddress().to_v6().is_link_local()){
continue;
}
sock = openSocket(iface->getName(), *addr, port);
if (sock < 0) {
isc_throw(SocketConfigError, "failed to open unicast socket");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment