RFR: 8302659: Modernize Windows native code for NetworkInterface [v3]

Daniel Fuchs dfuchs at openjdk.org
Thu Feb 23 14:45:08 UTC 2023


On Thu, 23 Feb 2023 12:44:30 GMT, Daniel Jeliński <djelinski at openjdk.org> wrote:

> I searched for other WinAPIs of interest; [GetIfStackTable](https://learn.microsoft.com/en-us/windows/win32/api/netioapi/nf-netioapi-getifstacktable) caught my attention.
> As far as I could see, the network interfaces are arranged in a stack with many filter interfaces stacked on top of a single non-filter interface. All interfaces in a stack return the same values from `isUp`, `isPointToPoint`, `isLoopback` and `getHardwareAddress`. The filter interfaces do not have any IP addresses, and are not usable with multicast sockets.
> I'm not sure how we could put that information to use. Ideas welcome.

Is there anything practical a Java Application could do with these interfaces? Except displaying them for debugging purposes? I mean - for instance - would it work if you tried, or are there case where it would be necessary,  to set one of these as the outgoing interface of a multicast socket?
Otherwise maybe we could just filter the filters out for now...

-------------

PR: https://git.openjdk.org/jdk/pull/12593



More information about the build-dev mailing list