Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-19291

GetAdaptersAddresses fails to return Friendly Name for ReactOS Loopback Adapter

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 0.4.16
    • RosDlls
    • None

    Description

      In working on some problems with iphlpapi.dll in ReactOS I found that the GetAdaptersAddresses function does not correctly return a FriendlyName for the Loopback Adapter (127.0.0.1). I wrote a program to show the results and tested this on ReactOS, Windows XP and Windows Server 2003 SP2. After more searching it became apparent that in Windows the name of the FriendlyName is the same as the AdapterName and this is hard-coded into iphlpapi.dll and tcpip.sys. Also, this hard-coded name is not localized on either the German version as confirmed by reactosfanboy and neither is it localized on the Spanish version as confirmed by julenuri. I have attached a patch that fixes this problem for me.

      Attachments

        1. GetAdapterAddresses_Spanish.png
          150 kB
          DougLyons
        2. GetAdaptersAddresses_French.png
          43 kB
          DougLyons
        3. GetAdaptersAddresses_German.png
          448 kB
          DougLyons
        4. GetAdaptersAddresses_iplhpapi_test.patch
          6 kB
          DougLyons
        5. GetAdaptersAddresses_name_03.patch
          2 kB
          DougLyons
        6. GetAdaptersAddresses.exe
          29 kB
          DougLyons
        7. iphlpapi_dll_w2k3sp2_TCP_Loopback.png
          105 kB
          DougLyons
        8. ReactOS_GetAdaptersAddresses_new.png
          104 kB
          DougLyons
        9. ReactOS_GetAdaptersAddresses_old.png
          102 kB
          DougLyons
        10. tcpip_sys_w2k3sp2_TCP_Loopback.png
          124 kB
          DougLyons
        11. Win2003SP2_GetAdaptersAddresses.png
          79 kB
          DougLyons
        12. WinXP_GetAdaptersAddresses.png
          273 kB
          DougLyons

        Activity

          People

            ekohl ekohl
            DougLyons DougLyons
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: