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

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes