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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • 4.8.3
    • 4.8.1
    • Network: Sockets
    • None
    • 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

              shkearns Shane Kearns
              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