8158519: Incorrect network mask and broadcast address on Linux when there are multiple IPv4 addresses on an interface

Chris Hegarty chris.hegarty at oracle.com
Thu Jun 2 12:06:19 UTC 2016


Doychin, et al,

I finally got time to look at the issue you reported and your suggested patch. I filed
8158519 [1] to track the issue. I think your suggested patch may be ok, but I just 
wanted to push on the ioctl approach. I found an alternative, and verified that it 
works as expected. Please take a look, and verify in your environment.  Then we 
need to weigh up the two separate approaches.

http://cr.openjdk.java.net/~chegar/8158519.00/

For the record, I don’t have any specific issue with using getifaddrs, I just wanted to
see if there was a less invasive change. That said, using getifaddrs could lead to
cleaner code, but we would need to check the situation on AIX ( which I don’t have 
access to ).

-Chris.

[1] https://bugs.openjdk.java.net/browse/JDK-8158519


More information about the net-dev mailing list