]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1095] updated comments
authorRazvan Becheriu <razvan@isc.org>
Wed, 6 May 2020 15:32:14 +0000 (18:32 +0300)
committerRazvan Becheriu <razvan@isc.org>
Wed, 6 May 2020 15:32:14 +0000 (18:32 +0300)
src/lib/dhcp/iface_mgr.cc

index 58e2d57e15a5aca9c7d485dbe2e9190774a7a2f7..7dfad76df7a7a67144cb6a6cc093424ea475f01d 100644 (file)
@@ -1025,6 +1025,7 @@ Pkt4Ptr IfaceMgr::receive4Indirect(uint32_t timeout_sec, uint32_t timeout_usec /
         std::lock_guard<std::mutex> lock(callbacks_mutex_);
         if (!callbacks_.empty()) {
             BOOST_FOREACH(SocketCallbackInfo s, callbacks_) {
+                // Add this socket to listening set
                 addFDtoSet(s.socket_, maxfd, &sockets);
             }
         }
@@ -1299,7 +1300,7 @@ IfaceMgr::receive6Direct(uint32_t timeout_sec, uint32_t timeout_usec /* = 0 */ )
         std::lock_guard<std::mutex> lock(callbacks_mutex_);
         if (!callbacks_.empty()) {
             BOOST_FOREACH(SocketCallbackInfo s, callbacks_) {
-                // Add it to the set as well
+                // Add this socket to listening set
                 addFDtoSet(s.socket_, maxfd, &sockets);
             }
         }
@@ -1404,7 +1405,7 @@ IfaceMgr::receive6Indirect(uint32_t timeout_sec, uint32_t timeout_usec /* = 0 */
         std::lock_guard<std::mutex> lock(callbacks_mutex_);
         if (!callbacks_.empty()) {
             BOOST_FOREACH(SocketCallbackInfo s, callbacks_) {
-                // Add it to the set as well
+                // Add this socket to listening set
                 addFDtoSet(s.socket_, maxfd, &sockets);
             }
         }