Problem with getFlags() method in NetworkInterface.c (original) (raw)
Shirish Kuncolienkar shirishk at linux.vnet.ibm.com
Thu Aug 9 03:16:58 PDT 2012
- Previous message: Parsing of URL's which contain Windows Path separator
- Next message: Problem with getFlags() method in NetworkInterface.c
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: Parsing of URL's which contain Windows Path separator
- Next message: Problem with getFlags() method in NetworkInterface.c
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]