diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2017-11-12 09:58:25 -0800 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2017-11-14 15:54:49 +0000 |
commit | aa494d826ace02ffff5f29ae20b7738630913777 (patch) | |
tree | 9f6611b9f0c53716ab54cc1716d9d41209dc1318 /tests/auto/network/kernel | |
parent | 9db46732a8a73cefcf4715582e35844737af465f (diff) |
QNetworkInterface/Win: fix MTU of Windows loopback interfaces
We document that -1 is not a valid value. The Windows structure's type
is unsigned, so the value is actually ULONG_MAX.
Change-Id: Ic632b4163d784b83951cfffd14f668645c4da3a9
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'tests/auto/network/kernel')
-rw-r--r-- | tests/auto/network/kernel/qnetworkinterface/tst_qnetworkinterface.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/network/kernel/qnetworkinterface/tst_qnetworkinterface.cpp b/tests/auto/network/kernel/qnetworkinterface/tst_qnetworkinterface.cpp index ae5082fecb..93dd73d64a 100644 --- a/tests/auto/network/kernel/qnetworkinterface/tst_qnetworkinterface.cpp +++ b/tests/auto/network/kernel/qnetworkinterface/tst_qnetworkinterface.cpp @@ -184,6 +184,8 @@ void tst_QNetworkInterface::consistencyCheck() if (iface.index()) interfaceIndexes << iface.index(); + QVERIFY(iface.maxTransmissionUnit() >= 0); + const QList<QNetworkAddressEntry> addresses = iface.addressEntries(); for (auto entry : addresses) { QVERIFY(entry.ip().protocol() != QAbstractSocket::UnknownNetworkLayerProtocol); |