Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Adam Osuchowski
Kea
Commits
e1c59f67
Commit
e1c59f67
authored
Jan 07, 2014
by
Marcin Siodelski
Browse files
[3251] Fixed IfaceMgr unit test for BSD systems.
parent
4063c0a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/dhcp/tests/iface_mgr_unittest.cc
View file @
e1c59f67
...
...
@@ -196,7 +196,7 @@ public:
/// - running always true
/// - inactive always to false
/// - multicast always to true
/// - broadcast always to
tru
e
/// - broadcast always to
fals
e
///
/// 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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment