java.net.NetworkInterface.getNetworkInterfaces does not work properly on AIX with IPv6
Jonathan Lu
luchsh at linux.vnet.ibm.com
Thu Oct 20 02:12:29 PDT 2011
On 10/20/2011 02:35 PM, Steve Poole wrote:
> On Thu, 2011-10-20 at 13:24 +0800, Jonathan Lu wrote:
>> 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.
> Cool - at a quick glance it looks fine - except your're missing the IBM
> attribution comment. I'll send you the details.
>
>> - Jonathan
Thanks Steve, I've updated the test case and patch, see the attachments.
I've added IBM portions copyright comment to both headers.
- Jonathan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: NetworkInterfaceTest.java
Type: text/x-java
Size: 2539 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/net-dev/attachments/20111020/2a2cbad6/NetworkInterfaceTest.java
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-patch
Size: 7614 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/net-dev/attachments/20111020/2a2cbad6/patch.diff
More information about the net-dev
mailing list