]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1555] Minor: added a todo comment.
authorMarcin Siodelski <marcin@isc.org>
Fri, 19 Jul 2013 11:14:02 +0000 (13:14 +0200)
committerMarcin Siodelski <marcin@isc.org>
Fri, 19 Jul 2013 11:14:02 +0000 (13:14 +0200)
src/bin/dhcp4/dhcp4_srv.cc
src/bin/dhcp6/dhcp6_srv.cc

index bc5a4d63714cb7785ad6989f62912b16c376b7cf..a9f0a5099e863a49c7ee3da8d9c858ed8ef06f7f 100644 (file)
@@ -852,6 +852,8 @@ Dhcpv4Srv::openActiveSockets(const uint16_t port,
     }
     // Let's reopen active sockets. openSockets4 will check internally whether
     // sockets are marked active or inactive.
+    // @todo Optimization: we should not reopen all sockets but rather select
+    // those that have been affected by the new configuration.
     if (!IfaceMgr::instance().openSockets4(port, use_bcast)) {
         LOG_WARN(dhcp4_logger, DHCP4_NO_SOCKETS_OPEN);
     }
index 30eff1e2fbd778115328ffd79a388995c6d90b3d..f6991ec34fefae5631b1f7fe015f1e03b6aa4aeb 100644 (file)
@@ -1133,6 +1133,8 @@ Dhcpv6Srv::openActiveSockets(const uint16_t port) {
     }
     // Let's reopen active sockets. openSockets6 will check internally whether
     // sockets are marked active or inactive.
+    // @todo Optimization: we should not reopen all sockets but rather select
+    // those that have been affected by the new configuration.
     if (!IfaceMgr::instance().openSockets6(port)) {
         LOG_WARN(dhcp6_logger, DHCP6_NO_SOCKETS_OPEN);
     }