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

Rich DiCroce duke at openjdk.org
Wed Mar 1 18:55:07 UTC 2023


On Wed, 1 Mar 2023 18:44:34 GMT, Daniel Jeliński <djelinski at openjdk.org> wrote:

>> Probably not. I took a closer look at the docs for GetAdaptersAddresses, and spotted this section that I missed before:
>> 
>>> If the GAA_FLAG_INCLUDE_ALL_INTERFACES is set, then all NDIS adapters will be retrieved even those addresses associated with adapters not bound to an address family specified in the Family parameter. When this flag is not set, then only the addresses that are bound to an adapter enabled for the address family specified in the Family parameter are returned.
>> 
>> So it sounds like GAA normally only returns interfaces that have IP addresses associated with them. Should I revert this change?
>
> Yes I think so. This change doesn't provide any obvious benefit, so let's revert it.

Done.

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

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



More information about the build-dev mailing list