Problem with getFlags() method in NetworkInterface.c

Shirish Kuncolienkar shirishk at linux.vnet.ibm.com
Thu Aug 9 03:16:58 PDT 2012


Hi,

The return value from the getFlags() method in NetworkInterface.c is 
interpreted in 2 ways.
- If the value is negative an Exception is thrown
- Else the return value is considered as the flag mask obtained via the 
ioctl call.

In rare cases is it possible the value in the ifr_flags could be 
negative.  One such case is VIPA interfaces.  any calls like isUp() on 
such network interfaces would end up in a Socket Exception.
I have patch for this.  Anyone would like to take a look ?

http://cr.openjdk.java.net/~luchsh/webrev20120809/

-Shirish




More information about the net-dev mailing list