Fix sending UDP packets to link local addresses
authorShane Kearns <shane.kearns@accenture.com>
Wed, 9 May 2012 16:13:59 +0000 (17:13 +0100)
committerQt by Nokia <qt-info@nokia.com>
Fri, 11 May 2012 15:39:13 +0000 (17:39 +0200)
commit6abc66e076826b24cc3700c3a0702f552ab50429
tree6d6800b5cb4f0b10ffc776f16a7b5afdcf0d88ad
parentb72c8dd8a248d67b1192e3baa1fca07244a3719d
Fix sending UDP packets to link local addresses

When the scope ID is not set, Mac and Windows will not transmit
packets to link local addresses. This patch implements setting
the scope in the native socket engines and adds a test case.
(it was partially implemented already, though UDP specific code
paths were missed in the unix engine)

Task-number: QTBUG-25634
Change-Id: I23300bdc9856e38458078e913daaa59cd05a74b5
Reviewed-by: Martin Petersson <Martin.Petersson@nokia.com>
src/network/socket/qnativesocketengine_unix.cpp
src/network/socket/qnativesocketengine_win.cpp
tests/auto/network/socket/qudpsocket/tst_qudpsocket.cpp