[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/42817] New: NetworkInterface.isUp bug
From: |
paulo dot costa at veridistec dot com dot br |
Subject: |
[Bug classpath/42817] New: NetworkInterface.isUp bug |
Date: |
21 Jan 2010 02:29:05 -0000 |
It should return true if the interface is Up AND Running.
Currently, it returns true if it is Up OR Running.
The fix is trivial:
--- a/native/jni/java-net/java_net_VMNetworkInterface.c 2008-07-07
06:19:37.598963481 -0300
+++ b/native/jni/java-net/java_net_VMNetworkInterface.c 2010-01-21
00:18:46.000000000 -0200
@@ -315,7 +315,7 @@ Java_java_net_VMNetworkInterface_isUp (J
}
else
{
- retval = (flags & (IFF_UP | IFF_RUNNING))
+ retval = ((flags & IFF_UP) && (flags & IFF_RUNNING))
? JNI_TRUE
: JNI_FALSE;
}
--
Summary: NetworkInterface.isUp bug
Product: classpath
Version: 0.98
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: classpath
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: paulo dot costa at veridistec dot com dot br
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42817
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug classpath/42817] New: NetworkInterface.isUp bug,
paulo dot costa at veridistec dot com dot br <=