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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Duplicate
    • Affects Version/s: 4.8.1
    • Fix Version/s: 4.8.3
    • Component/s: Network: Sockets
    • Labels:
      None
    • Environment:
      Windows

      Description

      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.

        Attachments

          Issue Links

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

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes