Skip to content
Permalink
Browse files
8246114: java/net/MulticastSocket/Promiscuous.java fails after 824107…
…2 (multi-homed systems)

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

Backport-of: 0f43de9
  • Loading branch information
Jonathan Dowland authored and RealCLanger committed Sep 16, 2021
1 parent e3f923f commit 777039b1e6a243d005d49d29e1d6d92aa6941daf
Showing 1 changed file with 3 additions and 3 deletions.
@@ -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
@@ -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);
@@ -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);

1 comment on commit 777039b

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 777039b Sep 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.