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

QUdpSocket::writeDatagram, results in a NetworkError. when using link-local addressing (e.g. ff02::1) on Mac OS X

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 4.6.1
    • Network
    • None
    • Macbook Pro 15 inch - version 5.4
      Mac OSX - Snow Leopard
    • macOS

      QUdpSocket::writeDiagram, results in a NetworkError when using IPv6 link-local addressing (e.g. ff02::1) on Mac OS X.
      The specified scope id is definitely correct, and the source code works fine under Windows.
      And it only occurs when no dynamically allocated IPv6 address is set to the interface.

      Testcase:

      QByteArray datagram = "Broadcast message";

      QUdpSocket socket (this);

      QHostAddress addr ("ff02::1");
      addr.setScopeId ("4"); // Scope id 4 is en0 under this system

      if (socket.writeDatagram (datagram, addr, 4545) < 0)
      {
      qDebug () << "Errno: " << socket.error();
      qDebug () << "Errmgs: " << socket.errorString();
      }

      output:

      Errno: QAbstractSocket::NetworkError
      Errmgs: "Unable to send a message"

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

            tmacieir Thiago Macieira (closed Nokia identity) (Inactive)
            van dam innovations Roy van Dam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes