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

QUdpSocket::readDatagram doesn't set scopeId of senders IPv6 address

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • 4.8.3
    • 4.8.1
    • Network: Sockets
    • None
    • Windows

      When reading a pending datagram from a UDP socket which is bound to a IPv6 address, the generated host address doesn't contain the scopeId of the address.

      The problem seems to exist on windows only. Adding the line
      a.setScopeId ( QString ( ) . setNum ( sa6 -> sin6_scope_id ) );
      in
      qt_socket_getPortAndAddress
      solved the problem for me.

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

            shkearns Shane Kearns
            torstenlimberg Torsten Limberg
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes