qt5base-lts/tests/auto/network/kernel
Thiago Macieira bdd4ddd8fa QNetworkInterface: fix support for address labels on Linux interfaces
Commit 64a1448d87 (Qt 5.2) caused
QNetworkInterface to report address labels (a.k.a. interface aliases) as
separate interfaces. This is caused by the fact that glibc, uClibc and
MUSL copy the address label (netlink address attribute IFA_LABEL) to the
ifa_name field, which made QNetworkInterfaceManager think that it was an
interface it hadn't yet seen.

Address labels are the old way to add more than one IP address to an
interface on Linux, for example:
    ifconfig eth0:1 192.0.2.2

Those do not create a new interface, so the "eth0:1" label maps to the
same interface index as the parent interface. This has been deprecated
for 10 years, but there are still tools out there that add addresses in
this manner.

This commit restores behavior compatibility with Qt 4.2-5.1. The Qt
5.2-5.5 behavior is incorrect because it reports more than one interface
with the same index. On systems configured like the above, the
tst_QNetworkInterface::interfaceFromXXX test was failing.

Change-Id: I8de47ed6c7be4847b99bffff141c2d9de8cf7329
Reviewed-by: Richard J. Moore <rich@kde.org>
2015-12-08 06:32:22 +00:00
..
qauthenticator tests/auto/network: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-31 04:29:33 +00:00
qdnslookup Merge remote-tracking branch 'origin/5.4' into 5.5 2015-03-31 10:03:31 +02:00
qdnslookup_appless Merge remote-tracking branch 'origin/5.4' into 5.5 2015-03-02 09:23:07 +01:00
qhostaddress QHostAddress: Improve code generation 2015-08-19 06:13:33 +00:00
qhostinfo Tests: Replace Q[TRY]_VERIFY(v == true|false) by QVERIFY(v)|QVERIFY(!v). 2015-07-27 12:09:19 +00:00
qnetworkaddressentry tests/auto/network: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-31 04:29:33 +00:00
qnetworkinterface QNetworkInterface: fix support for address labels on Linux interfaces 2015-12-08 06:32:22 +00:00
qnetworkproxy Update copyright headers 2015-02-11 06:49:51 +00:00
qnetworkproxyfactory Tests: Blacklist tests for ubuntu 14.04 2015-04-01 13:59:04 +00:00
kernel.pro Disable tst_qhostinfo on OS X. 2014-10-10 13:15:43 +02:00