hg: jdk/jdk: 8059309: network tests fail with "java.net.SocketException: Couldn't obtain phys addr" when run as "root"

daniel.fuchs at oracle.com daniel.fuchs at oracle.com
Thu Mar 12 18:34:38 UTC 2020


Changeset: 29f4b46a1680
Author:    dfuchs
Date:      2020-03-12 18:31 +0000
URL:       https://hg.openjdk.java.net/jdk/jdk/rev/29f4b46a1680

8059309: network tests fail with "java.net.SocketException: Couldn't obtain phys addr" when run as "root"
Summary: The solaris specific code is changed to use the fallback mechanism if the DLPI interface returns an error indicating that the operation is unsupported. In addition, NetworkInterface::getHardwareAddress is changed to always return null for the loopback interface.
Reviewed-by: alanb

! src/java.base/share/classes/java/net/NetworkInterface.java
! src/java.base/unix/native/libnet/NetworkInterface.c
+ test/jdk/java/net/NetworkInterface/NullMacAddress.java



More information about the jdk-all-changes mailing list