Re: RFR [9] 8058216: NetworkInterface.getHardwareAddress can return zero length byte array when run with preferIPv4Stack

2014-09-12 Thread Chris Hegarty
On 12/09/14 12:47, Bernd Eckenfels wrote: Hello, A short question out of couriosity, why is the code for the v6 and v4 case different, anyway? This is legacy code using Windows APIs that predate IPv6 support in the platform. There is a huge opportunity for cleanup and modernization here. H

Re: RFR [9] 8058216: NetworkInterface.getHardwareAddress can return zero length byte array when run with preferIPv4Stack

2014-09-12 Thread Bernd Eckenfels
Hello, A short question out of couriosity, why is the code for the v6 and v4 case different, anyway? Gruss Bernd -- http://bernd.eckenfels.net -Original Message- From: Chris Hegarty To: OpenJDK Network Dev list Sent: Fr., 12 Sep 2014 11:05 Subject: Re: RFR [9] 8058216: NetworkInterf

Re: RFR [9] 8058216: NetworkInterface.getHardwareAddress can return zero length byte array when run with preferIPv4Stack

2014-09-12 Thread Michael McMahon
Looks fine to me Michael On 12/09/14 10:05, Chris Hegarty wrote: On 11/09/14 14:42, Chris Hegarty wrote: A small issue was found when running JCK tests on modern Windows platforms, that have IPv6 enabled, but forced to run with the IPv4 Stack, -Djava.net.preferIPv4Stack=true. NetworkInterfa

Re: RFR [9] 8058216: NetworkInterface.getHardwareAddress can return zero length byte array when run with preferIPv4Stack

2014-09-12 Thread Chris Hegarty
On 11/09/14 14:42, Chris Hegarty wrote: A small issue was found when running JCK tests on modern Windows platforms, that have IPv6 enabled, but forced to run with the IPv4 Stack, -Djava.net.preferIPv4Stack=true. NetworkInterface.getHardwareAddress() can return a zero length byte array, where