]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[4067] Addressed review comments
authorThomas Markwalder <tmark@isc.org>
Thu, 24 Sep 2015 15:33:14 +0000 (11:33 -0400)
committerThomas Markwalder <tmark@isc.org>
Thu, 24 Sep 2015 15:33:14 +0000 (11:33 -0400)
    Updated commentary in pkt_filter_test_stub.h as requested.

src/lib/dhcp/tests/pkt_filter_test_stub.h

index 6f8248f844ee2f5d8fb49e539e643f633f8148c0..b1d0ed5808403314b3d4997863c5b82222da1d99 100644 (file)
@@ -47,9 +47,11 @@ public:
 
     /// @brief Simulate opening of the socket.
     ///
-    /// This function simulates opening a primary socket. In reality, it doesn't
-    /// open a socket but the socket descriptor returned in the SocketInfo
-    /// structure is always set to 0.
+    /// This function simulates opening a primary socket. Rather than open
+    /// an actual socket, the stub peforms a read-only open of "/dev/null".
+    /// The fd returned by this open saved as the socket's descriptor in the
+    /// SocketInfo structure.  This way the filter consumes an actual
+    /// descriptor and retains it until its socket is closed.
     ///
     /// @param iface An interface descriptor.
     /// @param addr Address on the interface to be used to send packets.