Fix problem with QNetworkAddressEntry returning a invalid netmask.
authorChristian Strømme <christian.stromme@digia.com>
Wed, 27 Nov 2013 14:04:09 +0000 (15:04 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 3 Feb 2014 16:11:53 +0000 (17:11 +0100)
commita0930d007c01423daebc5c63fbf8635a8b394fd7
treea4b93f7d6da4ffb19c9fc7eb79239d5ca1d63100
parent663b742ca8b289e6456facf8b6a8ca18a4157fb7
Fix problem with QNetworkAddressEntry returning a invalid netmask.

The ip address should be set before the netmask. The reason for this is
that QNetworkAddressEntry::setNetmask() compares the protocol of the
netmask and the ip, if they don't match the netmask won't be set.

Task-number: QTBUG-33911
Change-Id: Ic344b3653c5dfdc5df912dee16e4dbe069d57d24
(cherry-picked from qtbase commit e82951611c6d965cc8ef9cbf4ee7fbccf615bb3f)
Reviewed-by: Peter Hartmann <phartmann@blackberry.com>
src/network/kernel/qnetworkinterface_unix.cpp