summaryrefslogtreecommitdiff
path: root/ACE/tests/Multicast_Test_IPV6.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/tests/Multicast_Test_IPV6.cpp')
-rw-r--r--ACE/tests/Multicast_Test_IPV6.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/ACE/tests/Multicast_Test_IPV6.cpp b/ACE/tests/Multicast_Test_IPV6.cpp
index 9a2b29a5572..bc3db91d036 100644
--- a/ACE/tests/Multicast_Test_IPV6.cpp
+++ b/ACE/tests/Multicast_Test_IPV6.cpp
@@ -817,6 +817,16 @@ int producer (MCT_Config &config)
ACE_DEBUG ((LM_INFO, ACE_TEXT ("set IPV6_MULTICAST_HOPS = %d\n"),
hops));
}
+
+ // Turn on multicast loop back since the test relies on it and the
+ // ACE_SOCK_Dgram_Mcast documents the loopback state as indeterminate.
+ char do_loopback = 1;
+ if (socket.set_option (IPPROTO_IPV6,
+ IPV6_MULTICAST_LOOP,
+ (void *)&do_loopback,
+ 1) == -1)
+ ACE_ERROR ((LM_ERROR, ACE_TEXT ("%p\n"),
+ ACE_TEXT ("Can't set IPV6_MULTICAST_LOOP")));
#endif /* ACE_HAS_IPV6 */