harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Ellison (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-6588) [classlib][luni] InetAddress.isReachable(NetworkInterface netif,int ttl, int timeout) always return false when testing reachablity by sending TCP ECHO
Date Mon, 19 Jul 2010 14:50:49 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-6588?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Tim Ellison updated HARMONY-6588:
---------------------------------

    Attachment: harmony-6588v2.patch

I see an equivalent fix required, so I would propose fixing it with harmony-6588v2.patch

What do you think?


> [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.


Mime
View raw message