You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Xiao Shu (JIRA)" <ji...@apache.org> on 2010/09/07 09:42:33 UTC

[jira] Commented: (HARMONY-6588) [classlib][luni] InetAddress.isReachable(NetworkInterface netif,int ttl, int timeout) always return false when testing reachablity by sending TCP ECHO

    [ https://issues.apache.org/jira/browse/HARMONY-6588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12906701#action_12906701 ] 

Xiao Shu commented on HARMONY-6588:
-----------------------------------

yes, harmony-6588v2.patch is the latest patch.

> [classlib][luni] InetAddress.isReachable(NetworkInterface netif,int ttl, int timeout) always return false when testing reachablity by sending TCP ECHO
> ------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-6588
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6588
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>    Affects Versions: 5.0M14
>            Reporter: Xiao Shu
>         Attachments: Harmony-6588.diff, harmony-6588v2.patch
>
>
> Run below test case on Linux ppc with a user who's not administrator. (For Administrators, will test reachability by sending ICMP ECHO REQUESTs )
> import java.net.*;
> import java.util.*;
> public class Reachability {
>     public static void main(String[] args) throws Exception {
>         InetAddress ia = InetAddress.getByName("<IP_ADDRESS>");
>         System.out.println("InetAddress: " + ia);
>         Enumeration nis = NetworkInterface.getNetworkInterfaces();
>         while (nis.hasMoreElements()) {
>             NetworkInterface ni = (NetworkInterface) nis.nextElement();
>             System.out.println("Network Interface: " + ni);
>             boolean reachable = ia.isReachable(ni, 10, 60000);
>             System.out.println(reachable);
>         }
>     }
> }
> The expected result is printing out at least one true.
> But when running this test case, it will print all false.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.