JDK-8302659 : Modernize Windows native code for NetworkInterface
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.net
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows
  • Submitted: 2023-02-16
  • Updated: 2024-04-23
  • Resolved: 2023-03-15
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 21
21 b14Fixed
Related Reports
CSR :  
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Sub Tasks
JDK-8303898 :  
Description
Currently we have 2 distinct implementations of NetworkInterface functions on Windows. 
One dates back to pre-WinXP, where there was no support for IPv4. This version is still used when IPv6 stack is disabled with java.net.preferIPv4Stack=true system property.
The other implementation uses WinXP functions that support IPv6. This version is used by default.

We should aim to have only one implementation of these functions. Windows 2000 is no longer supported, so we could use the more modern functions, and filter out IPv6 when IPv4 stack is requested.
Comments
Changeset: 35a29690 Author: Rich DiCroce <Rich.DiCroce@scientificgames.com> Committer: Daniel JeliƄski <djelinski@openjdk.org> Date: 2023-03-15 17:06:32 +0000 URL: https://git.openjdk.org/jdk/commit/35a2969057ce2d8673d6c338e1daa7e84935c591
15-03-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/12593 Date: 2023-02-16 14:32:15 +0000
16-02-2023