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

The network module should be fetching the network configurations for Mac OS X from SCNetworkConfiguration instead

    XMLWordPrintable

Details

    • macOS

    Description

      For Mac OS X QNetworkInterface returns wrong values for isRunning and isUp when one unplugs an ethernet cable. Eventhough one unplugs the ethernet cable isUp() and isRunning() still returns true.

      Most probably SCNetworkConfiguration should be used to fetch the configurations. See: https://developer.apple.com/library/mac/documentation/Networking/Reference/SCNetworkConfiguration/

      The example attached can be used to reproduce the issue.

      Steps to reproduce:
      1. unplug ethernet cable
      2. run the example
      3. check from Application Output what does isRunning and isUp return

      Expected result:
      isRunning and isUp should return false

      Actual result:
      isRunning and isUp returns true even the ethernet cable is unplugged

      Attachments

        1. qtbug48422.zip
          2 kB
          Qt Support
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            cnn Qt Core & Network
            qtcomsupport Qt Support
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes