BIND 10 trac2765, updated. 68aae7c97b56de73918721193ec1ee29bee638e6 [2765] Added unit test description in IfaceMgr unit tests.

BIND 10 source code commits bind10-changes at lists.isc.org
Tue Dec 3 13:35:44 UTC 2013


The branch, trac2765 has been updated
       via  68aae7c97b56de73918721193ec1ee29bee638e6 (commit)
      from  a52c2327de24151a8a9f1d93f4bb6c3ee3962ac0 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 68aae7c97b56de73918721193ec1ee29bee638e6
Author: Marcin Siodelski <marcin at isc.org>
Date:   Tue Dec 3 14:35:37 2013 +0100

    [2765] Added unit test description in IfaceMgr unit tests.

-----------------------------------------------------------------------

Summary of changes:
 src/lib/dhcp/tests/iface_mgr_unittest.cc |    6 ++++++
 1 file changed, 6 insertions(+)

-----------------------------------------------------------------------
diff --git a/src/lib/dhcp/tests/iface_mgr_unittest.cc b/src/lib/dhcp/tests/iface_mgr_unittest.cc
index d020db8..0032433 100644
--- a/src/lib/dhcp/tests/iface_mgr_unittest.cc
+++ b/src/lib/dhcp/tests/iface_mgr_unittest.cc
@@ -1105,6 +1105,12 @@ TEST_F(IfaceMgrTest, setMatchingPacketFilter) {
     EXPECT_TRUE(iface_mgr->isDirectResponseSupported());
 }
 
+// This test checks that it is not possible to open two sockets: IP/UDP
+// and raw (LPF) socket and bind to the same address and port. The
+// raw socket should be opened together with the fallback IP/UDP socket.
+// The fallback socket should fail to open when there is another IP/UDP
+// socket bound to the same address and port. Failing to open the fallback
+// socket should preclude the raw socket from being open.
 TEST_F(IfaceMgrTest, checkPacketFilterLPFSocket) {
     IOAddress loAddr("127.0.0.1");
     int socket1 = -1, socket2 = -1;



More information about the bind10-changes mailing list