java.net.NetworkInterface.getNetworkInterfaces does not work properly on AIX with IPv6

Jonathan Lu chuanshenglu at gmail.com
Wed Oct 19 22:24:03 PDT 2011


On 10/19/2011 06:03 PM, Steve Poole wrote:
> On Mon, 2011-10-17 at 15:14 +0800, Jonathan Lu wrote:
>> Hi net-devs,
>>
>> I've got a problem on AIX operating system when IPv6 is enabled,which
>> can be easily reproduced by attached test case NetworkInterfaceTest.java.
>> On AIX paltform, the /proc file system behaves differently from Linux,
>> so we cannot just read required lines from /proc/net/if_inet6 but to
>> call ioctl to get needed information. A patch is available for OpenJDK8
>> code base, see attachment patch.diff.
>>
>> Is anybody interested in this topic?
>>
>> I'm quite aware of the fact that so far there's no publicly available
>> building scripts for OpenJDK8 on AIX operating system, but before
>> everything settles down, is anybody willing to review the patch? any
>> ideas about how to integrate it?
>>
>> Best regards!
>>
> Hi Jonathan -  can you add a copyright header to the testcase and see if
> you can make the testcase fit into a jtreg test format?
>
>
>
Hi Steve,
Thanks for your suggestion.
I've updated the test case to fit into a jtreg format, see the 
attachment NetworkInterfaceTest.java.

- Jonathan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: NetworkInterfaceTest.java
Type: text/x-java
Size: 2647 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/net-dev/attachments/20111020/47825951/NetworkInterfaceTest.java 


More information about the net-dev mailing list