BIND 10 trac3251, updated. e1c59f67be33e21c00032d64b6edb0db3882eb7a [3251] Fixed IfaceMgr unit test for BSD systems.
BIND 10 source code commits
bind10-changes at lists.isc.org
Tue Jan 7 13:11:05 UTC 2014
The branch, trac3251 has been updated
via e1c59f67be33e21c00032d64b6edb0db3882eb7a (commit)
from 4063c0a8aa70cd0503fbf9d19a8b7f65ecd59064 (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 e1c59f67be33e21c00032d64b6edb0db3882eb7a
Author: Marcin Siodelski <marcin at isc.org>
Date: Tue Jan 7 13:58:48 2014 +0100
[3251] Fixed IfaceMgr unit test for BSD systems.
-----------------------------------------------------------------------
Summary of changes:
src/lib/dhcp/tests/iface_mgr_unittest.cc | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/dhcp/tests/iface_mgr_unittest.cc b/src/lib/dhcp/tests/iface_mgr_unittest.cc
index eaedacd..472210b 100644
--- a/src/lib/dhcp/tests/iface_mgr_unittest.cc
+++ b/src/lib/dhcp/tests/iface_mgr_unittest.cc
@@ -196,7 +196,7 @@ public:
/// - running always true
/// - inactive always to false
/// - multicast always to true
- /// - broadcast always to true
+ /// - broadcast always to false
///
/// If one needs to modify the default flag settings, the setIfaceFlags
/// function should be used.
@@ -211,7 +211,12 @@ public:
iface.flag_loopback_ = true;
}
iface.flag_multicast_ = true;
- iface.flag_broadcast_ = true;
+ // On BSD systems, the SO_BINDTODEVICE option is not supported.
+ // Therefore the IfaceMgr will throw an exception on attempt to
+ // open sockets on more than one broadcast-capable interface at
+ // the same time. In order to prevent this error, we mark all
+ // interfaces broadcast-incapable for unit testing.
+ iface.flag_broadcast_ = false;
iface.flag_up_ = true;
iface.flag_running_ = true;
iface.inactive4_ = false;
More information about the bind10-changes
mailing list