Received: from ucsinet22.oracle.com (/156.151.31.94) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 07 Dec 2011 08:47:59 -0800 Received: from rcsinet12.oracle.com (rcsinet12.oracle.com [148.87.113.124]) by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id pB7GlwkG004313 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 7 Dec 2011 16:47:58 GMT Received: from mailout01.kenai.com (mailout01.kenai.com [192.9.171.172]) by rcsinet12.oracle.com (Sentrion-MTA-4.2.0/Sentrion-MTA-4.2.0) with ESMTP id pB7Glp1T009633; Wed, 7 Dec 2011 16:47:52 GMT Received: from mail01.java.net (jnxmlm02z1.network.org [192.9.171.232]) by mailout01.kenai.com (Postfix) with ESMTP id EB6E14D0B19; Wed, 7 Dec 2011 16:47:50 +0000 (GMT) Received: from localhost (localhost [127.0.0.1]) by mail01.java.net (Postfix) with ESMTP id 834DD533CCD; Wed, 7 Dec 2011 16:47:50 +0000 (GMT) X-Virus-Scanned: amavisd-new at network.org Received: from mail01.java.net ([127.0.0.1]) by localhost (jnxmlm02z1.network.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id z4NyBOrH6AIH; Wed, 7 Dec 2011 16:47:50 +0000 (GMT) Received: by mail01.java.net (Postfix, from userid 60005) id 1B1F5533CC9; Wed, 7 Dec 2011 16:47:49 +0000 (GMT) Received: from localhost (localhost [127.0.0.1]) by mail01.java.net (Postfix) with ESMTP id 22A4E533CBF for ; Wed, 7 Dec 2011 16:47:43 +0000 (GMT) X-Virus-Scanned: amavisd-new at network.org Received: from mail01.java.net ([127.0.0.1]) by localhost (jnxmlm02z1.network.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id lXplyad3fztL for ; Wed, 7 Dec 2011 16:47:42 +0000 (GMT) Received: from java.net (jnxapp05z1.network.org [192.9.171.236]) by mail01.java.net (Postfix) with ESMTP id 6803C533CBC for ; Wed, 7 Dec 2011 16:47:42 +0000 (GMT) Date: Wed, 7 Dec 2011 16:47:42 +0000 From: jfialli@java.net To: commits@shoal.java.net Message-Id: <4edf98ae53020_1866848124cf@jnxapp05z1.network.org.tmail> Subject: [shoal~svn:1726] Fix issue where a network interface was not up but it did have an ipv6 ad Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Reply-To: commits@shoal.java.net X-Loop: commits@shoal.java.net X-Sequence: 289 Errors-to: commits-owner@shoal.java.net Precedence: list X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: X-Source-IP: mailout01.kenai.com [192.9.171.172] X-CT-RefId: str=0001.0A090207.4EDF98B9.0003,ss=1,re=0.000,fgs=0 Project: shoal Repository: svn Revision: 1726 Author: jfialli Date: 2011-12-07 16:47:40 UTC Link: Log Message: ------------ Fix issue where a network interface was not up but it did have an ipv6 address assigned to it. GMS was incorrectly using that IPv6 address as the members ip address for point-to-point communications. (incorrectly) Revisions: ---------- 1726 Modified Paths: --------------- branches/gms-transport-modules/gms/impl/src/main/java/com/sun/enterprise/mgmt/transport/NetworkUtility.java Diffs: ------ Index: branches/gms-transport-modules/gms/impl/src/main/java/com/sun/enterprise/mgmt/transport/NetworkUtility.java =================================================================== --- branches/gms-transport-modules/gms/impl/src/main/java/com/sun/enterprise/mgmt/transport/NetworkUtility.java (revision 1725) +++ branches/gms-transport-modules/gms/impl/src/main/java/com/sun/enterprise/mgmt/transport/NetworkUtility.java (revision 1726) @@ -263,8 +263,10 @@ continue; } - // removed check if multicast enabled. Definitely not correct for non-multicast mode. - if( getNetworkInetAddress(anInterface, false) != null || + // replaced isMulticast() check with just an isUp() check. + // Definitely not correct for non-multicast mode to not allow non-multicast network interfaces. + if( isUp(anInterface) && + getNetworkInetAddress(anInterface, false) != null || getNetworkInetAddress(anInterface, true) != null ) { firstInterface = anInterface; break;