-
Bug
-
Resolution: Fixed
-
P4
-
13
-
b05
-
Not verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8222602 | 12u-cpu | Christoph Langer | P4 | Resolved | Fixed | master |
JDK-8222056 | 12.0.2 | Christoph Langer | P4 | Resolved | Fixed | b03 |
JDK-8222055 | 11.0.4 | Christoph Langer | P4 | Resolved | Fixed | b01 |
On Unix platforms, the native code to set the mutlicast interface for multicast sockets (IPv6 enabled implementation) makes use of a setsockopt call for the option IPV6_MULTICAST_IF. It is located in src/java.base/unix/native/libnet/PlainDatagramSocketImpl.c, function mcast_set_if_by_if_v6.
When the setsockopt call fails, errno is explicitly checked for EINVAL and in that case a custom tailored SocketException is thrown indicating an IPv6 address could be missing on the interface. For AIX one will see EADDRNOTAVAIL in that case, so the errno check should be extended. It should be safe to do this commonly on all Unix platforms.
When the setsockopt call fails, errno is explicitly checked for EINVAL and in that case a custom tailored SocketException is thrown indicating an IPv6 address could be missing on the interface. For AIX one will see EADDRNOTAVAIL in that case, so the errno check should be extended. It should be safe to do this commonly on all Unix platforms.
- backported by
-
JDK-8222055 Improve Exception thrown when MulticastSocket.setInterface fails on AIX(Unix)
- Resolved
-
JDK-8222056 Improve Exception thrown when MulticastSocket.setInterface fails on AIX(Unix)
- Resolved
-
JDK-8222602 Improve Exception thrown when MulticastSocket.setInterface fails on AIX(Unix)
- Resolved