-
Notifications
You must be signed in to change notification settings - Fork 478
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Store headers in RelayHeader before routing and restore on receptio…
…n (RELAY3: https://issues.redhat.com/browse/JGRP-2744) - DiagnosticsHandler checks for address compatibility when joining mcast groups on network interfaces
- Loading branch information
Showing
13 changed files
with
226 additions
and
253 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -385,7 +385,7 @@ protected void bindToInterfaces(List<NetworkInterface> interfaces, MulticastSock | |
try { | ||
if(Util.isUp(i)) { | ||
List<InterfaceAddress> inet_addrs=i.getInterfaceAddresses(); | ||
if(inet_addrs != null && !inet_addrs.isEmpty()) { // fix for VM crash - suggested by [email protected] | ||
if(inet_addrs != null && !inet_addrs.isEmpty() && isCompatible(mcast_addr, inet_addrs)) { // fix for VM crash - suggested by [email protected] | ||
s.joinGroup(group_addr, i); | ||
log.trace("joined %s on %s", group_addr, i.getName()); | ||
} | ||
|
@@ -396,7 +396,11 @@ protected void bindToInterfaces(List<NetworkInterface> interfaces, MulticastSock | |
} | ||
} | ||
} | ||
|
||
|
||
/** Checks if there's any address in the address list that's compatible (same address family) to addr */ | ||
protected static boolean isCompatible(InetAddress addr, List<InterfaceAddress> addrs) { | ||
return addrs.stream().map(InterfaceAddress::getAddress).anyMatch(a -> Objects.equals(a.getClass(), addr.getClass())); | ||
} | ||
|
||
public interface ProbeHandler { | ||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.