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

Steve Poole spoole at linux.vnet.ibm.com
Wed Oct 19 03:12:23 PDT 2011


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 - another thought.   If this patch is about dealing with the fact
that there is no /proc/net on AIX isn't that true for Solaris as well? 
(my Solaris box doesn't have a /proc/net folder either)

I wonder if we have patch here that should either be made to work for
Solaris & AIX or is not required as there is Solaris code somewhere that
does the same thing?

I haven't looked into this in detail so take the comment for what it's
worth.

Steve





More information about the net-dev mailing list