summaryrefslogtreecommitdiff
path: root/ACE/tests/Multicast_Test_IPV6.cpp
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>2007-07-24 21:12:04 +0000
committerSteve Huston <shuston@riverace.com>2007-07-24 21:12:04 +0000
commita54a45a4996d599af9c836157c56a5e096275843 (patch)
treef691c95cd22ade006e25ca064b3c8910e8ce93d1 /ACE/tests/Multicast_Test_IPV6.cpp
parent5fe04ad9f38852176899fc5d34e7d5f2d56719ce (diff)
downloadATCD-a54a45a4996d599af9c836157c56a5e096275843.tar.gz
ChangeLogTag:Tue Jul 24 21:09:27 UTC 2007 Steve Huston <shuston@riverace.com>
Diffstat (limited to 'ACE/tests/Multicast_Test_IPV6.cpp')
-rw-r--r--ACE/tests/Multicast_Test_IPV6.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/ACE/tests/Multicast_Test_IPV6.cpp b/ACE/tests/Multicast_Test_IPV6.cpp
index bc3db91d036..2a963923b1f 100644
--- a/ACE/tests/Multicast_Test_IPV6.cpp
+++ b/ACE/tests/Multicast_Test_IPV6.cpp
@@ -49,7 +49,7 @@
#if defined (ACE_HAS_IP_MULTICAST) && defined (ACE_HAS_THREADS)
/*
- * The 'finished' flag is used to break out of an infninite loop in the
+ * The 'finished' flag is used to break out of an infinite loop in the
* task::svc () method. The 'handler' will set the flag in respose to
* SIGINT (CTRL-C).
*/
@@ -818,15 +818,21 @@ int producer (MCT_Config &config)
hops));
}
- // Turn on multicast loop back since the test relies on it and the
+ // Turn on multicast loopback 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")));
+ {
+ if (errno == ENOTSUP)
+ ACE_DEBUG ((LM_INFO,
+ ACE_TEXT ("IPV6_MULTICAST_LOOP not supported\n")));
+ else
+ ACE_ERROR ((LM_ERROR, ACE_TEXT ("%p\n"),
+ ACE_TEXT ("Can't set IPV6_MULTICAST_LOOP")));
+ }
#endif /* ACE_HAS_IPV6 */