Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-10170

QNetworkInterface::IsPointToPoint not correctly set

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 4.6.2
    • Fix Version/s: 5.0.0
    • Component/s: Network
    • Labels:
      None
    • Environment:
      windows server 2003 + vs 2008
    • Commits:
      41ad3ee7cb7f7b6a2041b114a1f348fb0327d73c

      Description

      Hello,

      We have discovered a small issue with QNetworkInterface. The QNetworkInterface::IsPointToPoint flag is not correctly set on winXP and above. Win2K is fine because it uses a separate function. In qnetworkinterface_win.cpp, we have two ways of querying the system for MACs, interfaceListingWinXP() and interfaceListingWin2K(). Whereas the win2k version correctly sets QNetworkInterface::IsPointToPoint, guess what, the winXP version never sets it at all!

      I can confirm that the win32 IP_ADAPTER_ADDRESSES struct has the correct IfType = IF_TYPE_PPP (23) for a PPP link but Qt never uses it to set the QNetworkInterface::IsPointToPoint flag.

      Here's the MSDN about it: http://msdn.microsoft.com/en-us/library/aa366058%28v=VS.85%29.aspx

      This is a very easy fix, so I have attached a patch for you.

      Thank you.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            xcm Martin Petersson (Inactive)
            Reporter:
            codon Bryan Mongeau
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes