qt5base-lts/tests/auto/network/kernel
Thiago Macieira c4b0ff4855 tst_QNetworkInterface: don't force an IPv4 link-local address
Windows apparently has special code to deal with those addresses. If all
your network interfaces are up and have acquired addresses, then the
link-local network at 169.254.0.0/16 is unreachable. I had never caught
this because both my Windows VM and my bare metal Windows have inactive
interfaces (like the Bluetooth PAN one) and, when inactive, Windows
assigns a link-local address. But in the CI, the interface(s) were all
up and running, causing this issue.

Unix systems don't treat IPv4 link-local any differently, so they always
worked, so long as any interface was up and there had to be one to reach
the network test server.

This commit reworks the test to add test addresses based on the
addresses found on up & running interfaces (see tst_qudpsocket.cpp). For
IPv4, we flip the bits in the local portion of the address. For IPv6, we
add a node with an address I generated randomly (non-universal), with
the same scope.

Fixes: QTBUG-65667
Change-Id: I568dea4813b448fe9ba6fffd15dd9f482db34991
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
2019-12-07 10:20:27 -08:00
..
qauthenticator Add support for SPNEGO/Negotiate authentication 2019-02-25 15:22:23 +00:00
qdnslookup Update for failures only on dev branch. Use general platform names 2019-08-19 18:22:11 +02:00
qdnslookup_appless Stop depending on test.macieira.org 2017-11-27 21:48:20 +00:00
qhostaddress Make network tests build and pass with disabled deprecated APIs 2019-07-23 18:48:17 +00:00
qhostinfo Merge remote-tracking branch 'origin/5.13' into dev 2019-07-30 13:47:36 +02:00
qnetworkaddressentry
qnetworkdatagram Replace qMove with std::move 2019-04-06 11:00:38 +00:00
qnetworkinterface tst_QNetworkInterface: don't force an IPv4 link-local address 2019-12-07 10:20:27 -08:00
qnetworkproxy
qnetworkproxyfactory Merge remote-tracking branch 'origin/5.9' into 5.10 2017-10-04 13:41:04 +02:00
kernel.pro Use qtConfig throughout in qtbase 2016-08-19 04:28:05 +00:00