mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
8229706: java/net/MulticastSocket/NoLoopbackPackets.java fails on some AIX machines
Reviewed-by: chegar, clanger
This commit is contained in:
parent
103cd91d42
commit
313cb3ce76
1 changed files with 4 additions and 1 deletions
|
@ -29,6 +29,7 @@
|
||||||
*/
|
*/
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.net.*;
|
import java.net.*;
|
||||||
|
import jdk.test.lib.NetworkConfiguration;
|
||||||
import jdk.test.lib.net.IPSupport;
|
import jdk.test.lib.net.IPSupport;
|
||||||
|
|
||||||
public class NoLoopbackPackets {
|
public class NoLoopbackPackets {
|
||||||
|
@ -62,7 +63,9 @@ public class NoLoopbackPackets {
|
||||||
if (IPSupport.hasIPv4()) {
|
if (IPSupport.hasIPv4()) {
|
||||||
groups.add(new InetSocketAddress(InetAddress.getByName("224.1.1.1"), port));
|
groups.add(new InetSocketAddress(InetAddress.getByName("224.1.1.1"), port));
|
||||||
}
|
}
|
||||||
if (IPSupport.hasIPv6()) {
|
|
||||||
|
NetworkConfiguration nc = NetworkConfiguration.probe();
|
||||||
|
if (IPSupport.hasIPv6() && nc.hasTestableIPv6Address()) {
|
||||||
groups.add(new InetSocketAddress(InetAddress.getByName("::ffff:224.1.1.2"), port));
|
groups.add(new InetSocketAddress(InetAddress.getByName("::ffff:224.1.1.2"), port));
|
||||||
groups.add(new InetSocketAddress(InetAddress.getByName("ff02::1:1"), port));
|
groups.add(new InetSocketAddress(InetAddress.getByName("ff02::1:1"), port));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue