Re: JDK-8200719: Cannot connect to IPv6 host when exists any active network interface without IPv6 address

2018-04-11 Thread Joel Peláez Jorge
Hi Brend, I don't want remove all code related to scope_id assignation because it can break compatibility with old software, the new code only allows unicast packets be routed by the OS. I couldn't find the reason to exists of that (old) code. Linux has a filesystem than allow to applications

Re: JDK-8200719: Cannot connect to IPv6 host when exists any active network interface without IPv6 address

2018-04-11 Thread Bernd Eckenfels
Hello, Is this really correct? This seems to break for multi-homed hosts (old and new code). Does OS X not do proper interface autoselection (and if so, would the naive approach be any good?). Shouldnt it at least try to look at the destination routes, the priorities and the lifetimes? Gruss

Re: JDK-8200719: Cannot connect to IPv6 host when exists any active network interface without IPv6 address

2018-04-11 Thread Chris Hegarty
On 11/04/18 15:44, Langer, Christoph wrote: Hi Joel, Sounds good to me then. I created a webrev and uploaded it: http://cr.openjdk.java.net/~clanger/webrevs/8200719.0/ I will run it through the tests here at SAP and check the results. I will run it through the test system here in Oracle too.

RE: JDK-8200719: Cannot connect to IPv6 host when exists any active network interface without IPv6 address

2018-04-11 Thread Langer, Christoph
Hi Joel, Sounds good to me then. I created a webrev and uploaded it: http://cr.openjdk.java.net/~clanger/webrevs/8200719.0/ I will run it through the tests here at SAP and check the results. @All: Could we please get another review? Thanks Christoph > -Original Message- > From: Joel

Re: JDK-8200719: Cannot connect to IPv6 host when exists any active network interface without IPv6 address

2018-04-11 Thread Joel Peláez Jorge
Hi Christoph, OS X has a issue that needs "always" add a sin6_scope_id a multicast packet, I check that exists a old issue that logged it and add that piece of code: https://bugs.openjdk.java.net/browse/JDK-7144274 The DefaultInterface class in OS X is a plain Java class that list all interfa

RE: 8169865 : Changes not ported to IPv4

2018-04-11 Thread Srividya Shamaiah
Thanks Chris , As you suggested, I will provide the patch based on jdk 11. Thanks, Srividya S From: "Langer, Christoph" To: Srividya Shamaiah , Chris Hegarty Cc: OpenJDK Network Dev list Date: 11/04/2018 02:51 PM Subject:RE: 8169865 : Changes not ported to IP

RE: JDK-8200719: Cannot connect to IPv6 host when exists any active network interface without IPv6 address

2018-04-11 Thread Langer, Christoph
Hi Joel, your fix sounds reasonable. In fact, I'm not even sure if the sin6_scope_id should be set for multicast. Maybe it should be done only for link local addresses. Additionally, I guess the selection of the default interface (for IPv6) should be improved because I still can imagine a scen

RE: 8169865 : Changes not ported to IPv4

2018-04-11 Thread Langer, Christoph
Hi Srividya, I would also welcome this fix. Will you do the fix based on the jdk (11) depot? I think Java_java_net_Inet4AddressImpl_getLocalHostName should then be exactly the same as Java_java_net_Inet6AddressImpl_getLocalHostName. I can assist you with sponsoring/backporting to JDK8, if you

Re: 8169865 : Changes not ported to IPv4

2018-04-11 Thread Srividya Shamaiah
Thank you Chris for opening the JIRA bug, I will work on the fix and contribute it . Thanks, Srividya S From: Chris Hegarty To: Srividya Shamaiah Cc: OpenJDK Network Dev list Date: 10/04/2018 08:51 PM Subject:Re: 8169865 : Changes not ported to IPv4 > On 10 Apr 2018,