diff options
author | Steve Huston <shuston@riverace.com> | 2007-07-23 22:25:40 +0000 |
---|---|---|
committer | Steve Huston <shuston@riverace.com> | 2007-07-23 22:25:40 +0000 |
commit | 8a96bd42605ac3e0237147a41220ac5c13301882 (patch) | |
tree | 7faf3d54f81bcc47453806c70c0733ffe44822e7 | |
parent | dde4db6d87a3ef61baa83be8ffe170e1b7169cca (diff) | |
download | ATCD-8a96bd42605ac3e0237147a41220ac5c13301882.tar.gz |
ChangeLogTag:Mon Jul 23 20:16:23 UTC 2007 Steve Huston <shuston@riverace.com>
-rw-r--r-- | ACE/ChangeLog | 8 | ||||
-rw-r--r-- | ACE/tests/Multicast_Test_IPV6.cpp | 10 |
2 files changed, 18 insertions, 0 deletions
diff --git a/ACE/ChangeLog b/ACE/ChangeLog index 38c78afc1f3..2d464204bbb 100644 --- a/ACE/ChangeLog +++ b/ACE/ChangeLog @@ -1,3 +1,11 @@ +Mon Jul 23 20:16:23 UTC 2007 Steve Huston <shuston@riverace.com> + + * tests/Multicast_Test_IPV6.cpp: Always enable IPV6_MULTICAST_LOOP + since the test relies on seeing the datagrams sent on the local + host and various platforms have different defaults. + ACE_SOCK_Dgram_Mcast documents this indeterminate state, so if + the app cares (as this one does), it should set it specifically. + Mon Jul 22 09:59:30 UTC 2007 Johnny Willemsen <jwillemsen@remedy.nl> * tests/unload_libace.mpb: 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 */ |