tst_QTcpServer::linkLocal fix for Windows Xp
authorMartin Petersson <Martin.Petersson@nokia.com>
Tue, 3 Jul 2012 13:16:28 +0000 (15:16 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 5 Jul 2012 11:13:58 +0000 (13:13 +0200)
Do not try to connect to the Terdo Tunneling Pseudo-Interface as
this will fail for Windows Xp.

Change-Id: I6dcd8369ba1e8642224cd4ac53f4032ed46d050d
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
tests/auto/network/socket/qtcpserver/tst_qtcpserver.cpp

index fe9613a..afda020 100644 (file)
@@ -885,6 +885,9 @@ void tst_QTcpServer::linkLocal()
         //Windows preallocates link local addresses to interfaces that are down.
         //These may or may not work depending on network driver (they do not work for the Bluetooth PAN driver)
         if (iface.flags() & QNetworkInterface::IsUp) {
+            // Do not connect to the Teredo Tunneling interface on Windows Xp.
+            if (iface.humanReadableName() == QString("Teredo Tunneling Pseudo-Interface"))
+                continue;
             foreach (QNetworkAddressEntry addressEntry, iface.addressEntries()) {
                 QHostAddress addr = addressEntry.ip();
                 if (addr.isInSubnet(localMaskv4, 16)) {