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

Daniel Jeliński djelinski at openjdk.org
Thu Feb 23 12:47:10 UTC 2023


On Wed, 22 Feb 2023 17:40:31 GMT, Rich DiCroce <duke at openjdk.org> wrote:

>> Improves performance and correctness, as discussed on the net-dev mailing list.
>
> Rich DiCroce has updated the pull request incrementally with two additional commits since the last revision:
> 
>  - Forgot to add file
>  - Resolve review comments

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.

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

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



More information about the build-dev mailing list