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

QNetworkSession does not return an interface() for mobile broadband connection on Ubuntu Desktop Linux

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • None
    • 4.7.0
    • None
    • Ubuntu 10.04

    Description

      When I call QNetworkSession::interface() for an ethernet connection I get back a valid interface and the underlying IP address. When I call for an active mobile broadband connection I get an invalid interface. I traced through the QNetworkSessionPrivateImpl code and saw that the statement

      interface = engine->getInterfaceFromId(activeConfig.identifier())
      

      was returning "ttyUSB4", which is a device identifier. This is passed to QNetworkInterface::interfaceFromName, but the interfaces in that class are identified by interface name (e.g. "ppp0") not device id.

      I tried this with the QNetworkSession isOpen() == true and isOpen() == false with no difference in behavior.

      Attachments

        Issue Links

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

          Activity

            People

              Unassigned Unassigned
              geraldhuff Gerald Huff
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes