Skip to content

Commit

Permalink
8246114: java/net/MulticastSocket/Promiscuous.java fails after 824107…
Browse files Browse the repository at this point in the history
…2 (multi-homed systems)

Fixed the test - an IPv4 group cannot be joined from an interface that has no IPv4 address configured

Reviewed-by: alanb, amlu
  • Loading branch information
dfuch authored and jmtd committed Sep 16, 2021
1 parent d79b68e commit 4f2abe4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/jdk/java/net/MulticastSocket/Promiscuous.java
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -117,7 +117,7 @@ static void test(InetAddress group1, InetAddress group2)

// join groups on all network interfaces
NetworkConfiguration.probe()
.multicastInterfaces(false)
.ip4MulticastInterfaces(false)
.forEach((nic) -> {
try {
mc1.joinGroup(toSocketAddress(group1), nic);
Expand Down Expand Up @@ -153,7 +153,7 @@ static void test(InetAddress group1, InetAddress group2)

// leave groups on all network interfaces
NetworkConfiguration.probe()
.multicastInterfaces(false)
.ip4MulticastInterfaces(false)
.forEach((nic) -> {
try {
mc1.leaveGroup(toSocketAddress(group1), nic);
Expand Down

0 comments on commit 4f2abe4

Please sign in to comment.