Differences From Artifact [a714877a2e]:
- File src/platform/Windows/OFSystemInfo+NetworkInterfaces.m — part of check-in [26ddd2e4e4] at 2024-01-02 17:17:25 on branch trunk — Update copyright (user: js, size: 7184) [annotate] [blame] [check-ins using] [more...]
To Artifact [f40e21866b]:
- File
src/platform/Windows/OFSystemInfo+NetworkInterfaces.m
— part of check-in
[abe3ccd61e]
at
2024-01-20 15:18:15
on branch trunk
— +[OFSystemInfo networkInterfaces]: Avoid IfIndex
It turns out it is not unique, resulting in two adapters being merged
into one. Instead, use the adapter name as key. (user: js, size: 7255) [annotate] [blame] [check-ins using] [more...]
︙ | |||
38 39 40 41 42 43 44 | 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | - + | { HMODULE module; if ((module = GetModuleHandle("iphlpapi.dll")) != NULL) GetAdaptersAddressesFuncPtr = (WINAPI ULONG (*)(ULONG, ULONG, PVOID, PIP_ADAPTER_ADDRESSES, PULONG)) GetProcAddress(module, "GetAdaptersAddresses"); |
︙ | |||
76 77 78 79 80 81 82 | 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 | - - + + - + | for (PIP_ADAPTER_ADDRESSES iter = adapterAddresses; iter != NULL; iter = iter->Next) { OFString *name; OFMutableDictionary *interface; OFNumber *index; |
︙ |