diff options
author | Steve Huston <shuston@riverace.com> | 2015-03-16 14:12:04 -0400 |
---|---|---|
committer | Steve Huston <shuston@riverace.com> | 2015-03-16 14:12:04 -0400 |
commit | 06cadd2db3bf8cc34ba70d9e22e025e076cc64da (patch) | |
tree | f7a4cd818db2cbe77af8b2cad6d124add60a0db5 /ACE/tests/INET_Addr_Test.cpp | |
parent | 135bac34b594c10a2a058e4ad9d799e8e918bc47 (diff) | |
download | ATCD-06cadd2db3bf8cc34ba70d9e22e025e076cc64da.tar.gz |
ACE_Addr::set_addr(void*, int) was changed to ACE_Addr::set_addr(const void*, int). All descendant classes have the same change. Fixed multiple-address handling in ACE_INET_Addr and check for alias in INET_Addr_Test if a hostname reverse lookup doesn't match the forward lookup.
Diffstat (limited to 'ACE/tests/INET_Addr_Test.cpp')
-rw-r--r-- | ACE/tests/INET_Addr_Test.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/ACE/tests/INET_Addr_Test.cpp b/ACE/tests/INET_Addr_Test.cpp index f216789a5bc..02551655046 100644 --- a/ACE/tests/INET_Addr_Test.cpp +++ b/ACE/tests/INET_Addr_Test.cpp @@ -271,11 +271,14 @@ int run_main (int, ACE_TCHAR *[]) if (0 != ACE_OS::strcmp (addr.get_host_name (), ipv6_names[i])) { - ACE_ERROR ((LM_WARNING, - ACE_TEXT ("IPv6 name mismatch: %s (%s) != %s\n"), - addr.get_host_name (), - addr.get_host_addr (), - ipv6_names[i])); + // Alias? Check lookup on the reverse. + ACE_INET_Addr alias_check (80, addr.get_host_name ()); + if (addr != alias_check) + ACE_ERROR ((LM_WARNING, + ACE_TEXT ("IPv6 name mismatch: %s (%s) != %s\n"), + addr.get_host_name (), + addr.get_host_addr (), + ipv6_names[i])); } } } |