(solaris) 8059309: network tests fail with "java.net.SocketException: Couldn't obtain phys addr" when run as "root"
Daniel Fuchs
daniel.fuchs at oracle.com
Tue Mar 3 15:48:09 UTC 2020
Hi Bernd,
On 02/03/2020 20:44, Bernd Eckenfels wrote:
> However the question is, if other conditions (address families for
> tunnels, x.25 etc) than loopback can also trigger this unsupported case
> - but would actually return something in the fallback. So maybe for
> compatibility trying the fallback is needed.
Yes that was my point. And it works with the loopback too since
in that case there's nothing to be found (either with DLPI or
with the fallback)
>
> But in that case a loopback specific shortcut would be beneficial.
OK - maybe - here is an extended solution that will directly
return null if the NetworkInterface is the loopback.
However, there's a penalty to be paid for every interface
that is *not* the loopback.
http://cr.openjdk.java.net/~dfuchs/webrev_8059309/webrev.01/
Not sure which alternative is better?
best regards,
-- daniel
More information about the net-dev
mailing list