#1636 getaddrinfo is supported from windows 2000

WSL
pending
Earnie Boyd
None
Bug
later
Feature_in_WSL_4.1
False
2013-02-19
2012-05-18
Vincent TORRI
No

getaddrinfo is supported from win 2000, which version is 0x0500. See

http://msdn.microsoft.com/en-us/library/windows/desktop/ms738520%28v=vs.85%29.aspx

Earnie said that in mingw headers, this function is guarded by WINVER = 0x0501.

Maybe other functions like getaddrinfo should be cheked too.

Vincent Torri

Related

Issues: #1708
Issues: #1873

Discussion

  • Keith Marshall
    Keith Marshall
    2012-06-11

    According to the cited MSDN reference:

    > The getaddrinfo function was added to the Ws2_32.dll
    > on Windows XP and later.

    From this, I deduce that, in spite of the suggestion that the minimum supported client is Win2K Pro, the WINVER == 0x0501 guard may, in fact, be correct. The reference goes on to say:

    > To execute an application that uses this function on earlier
    > versions of Windows, then you need to include the Ws2tcpip.h
    > and Wspiapi.h files. When the Wspiapi.h include file is added,
    > the getaddrinfo function is defined to the WspiapiGetAddrInfo
    > inline function in the Wspiapi.h file. At runtime, the
    > WspiapiGetAddrInfo function is implemented in such a way that
    > if the Ws2_32.dll or the Wship6.dll (the file containing
    > getaddrinfo in the IPv6 Technology Preview for Windows 2000)
    > does not include getaddrinfo, then a version of getaddrinfo is
    > implemented inline based on code in the Wspiapi.h header file.
    > This inline code will be used on older Windows platforms that
    > do not natively support the getaddrinfo function.

    This implies that this -- if indeed, it is broken -- should *not* be "fixed" by changing to a WINVER == 0x0500 guard, but rather that an alternative inline implementation should be provided in in wspiapi.h, such that getaddrinfo() is called on WinXP and later, but is emulated on earlier windows versions.

    In the event that such emulation is not currently provided, or isn't working correctly, I no longer have access to any Win2K system for development or testing of a possible solution.

     
  • Earnie Boyd
    Earnie Boyd
    2012-06-14

    • assigned_to: nobody --> ir0nh34d
     
  • Earnie Boyd
    Earnie Boyd
    2012-08-04

    Vincent, are you able to test this on a Win2K Pro version of MSVCRT?

     
  • Earnie Boyd
    Earnie Boyd
    2012-08-04

    • assigned_to: ir0nh34d --> earnie
    • status: open --> pending
     
  • Vincent TORRI
    Vincent TORRI
    2012-08-12

    @Earnie: sorry, i have no such Windows version

     
  • Vincent TORRI
    Vincent TORRI
    2012-08-12

    • status: pending --> open
     
  • Earnie Boyd
    Earnie Boyd
    2012-08-12

    • status: open --> open-remind
     
  • Earnie Boyd
    Earnie Boyd
    2012-08-12

    Hmm, The document pointed to states
    Minimum supported client Windows 2000 Professional
    Minimum supported server Windows 2000 Server

    However, GetAddrInfoW is only supported on
    Minimum supported client Windows Vista, Windows XP with SP2
    Minimum supported server Windows Server 2003

    >According to the cited MSDN reference:

    >> The getaddrinfo function was added to the Ws2_32.dll
    >> on Windows XP and later.

    I see that, I'll see what I can do later.

     
  • Earnie Boyd
    Earnie Boyd
    2012-10-30

    • labels: 103945 --> WSL (Windows System Libraries)
    • status: open-remind --> pending-remind
     
  • Earnie Boyd
    Earnie Boyd
    2013-02-04

    • labels: WSL (Windows System Libraries) -->
    • status: pending-remind --> pending
    • resolution: --> later
    • category: --> Known_bugs
    • milestone: --> WSL
     
  • Earnie Boyd
    Earnie Boyd
    2013-02-11

    • type: --> Bug
    • patch_attached: --> False
     
  • Earnie Boyd
    Earnie Boyd
    2013-02-19

    • category: Known_bugs --> Feature_in_WSL_4.1