diff options
Diffstat (limited to 'tests/IOR_Endpoint_Hostnames/list_interfaces.cpp')
-rw-r--r-- | tests/IOR_Endpoint_Hostnames/list_interfaces.cpp | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/tests/IOR_Endpoint_Hostnames/list_interfaces.cpp b/tests/IOR_Endpoint_Hostnames/list_interfaces.cpp index 10935773c5c..cd941841865 100644 --- a/tests/IOR_Endpoint_Hostnames/list_interfaces.cpp +++ b/tests/IOR_Endpoint_Hostnames/list_interfaces.cpp @@ -1,3 +1,4 @@ +// $Id$ // // Extract the address for each network interface using EXACTLY // the same algorithm as TAO_IIOP_Acceptor, and then print @@ -12,10 +13,6 @@ #include "ace/Log_Msg.h" #include "ace/OS_NS_stdio.h" -ACE_RCSID (IOR_Endpoint_Hostnames, - list_interfaces, - "$Id$") - #if defined (ACE_HAS_IPV6) && !defined (ACE_USES_IPV4_IPV6_MIGRATION) ACE_INET_Addr default_address (static_cast<unsigned short> (0), ACE_IPV6_ANY, AF_INET6); #else @@ -28,7 +25,6 @@ ACE_TMAIN(int argc, ACE_TCHAR *argv[]) ACE_UNUSED_ARG (argc); ACE_UNUSED_ARG (argv); - CORBA::ULong endpoint_count; #if defined (ACE_HAS_IPV6) int def_type = AF_UNSPEC; #endif /* ACE_HAS_IPV6 */ @@ -139,21 +135,12 @@ ACE_TMAIN(int argc, ACE_TCHAR *argv[]) // in a localhost environment. if (!ipv4_only && !ipv6_non_ll) lo_cnt = ipv4_lo_cnt; - - if (!ignore_lo) - endpoint_count = static_cast<CORBA::ULong> (if_ok_cnt - ipv6_ll); - else - endpoint_count = static_cast<CORBA::ULong> (if_ok_cnt - ipv6_ll - lo_cnt); #else /* ACE_HAS_IPV6 */ // If the loopback interface is the only interface then include it // in the list of interfaces to query for a hostname, otherwise // exclude it from the list. bool ignore_lo; ignore_lo = if_cnt != lo_cnt; - if (!ignore_lo) - endpoint_count = static_cast<CORBA::ULong> (if_cnt); - else - endpoint_count = static_cast<CORBA::ULong> (if_cnt - lo_cnt); #endif /* !ACE_HAS_IPV6 */ // The number of hosts/interfaces we want to cache may not be the |