summaryrefslogtreecommitdiffstats
path: root/src/network/kernel
diff options
context:
space:
mode:
authorAleksandar Sasha Babic <aleksandar.babic@nokia.com>2009-07-24 09:45:34 (GMT)
committerAleksandar Sasha Babic <aleksandar.babic@nokia.com>2009-07-24 09:45:34 (GMT)
commite49bf3037c2cd170c93c35f7657bef0e7af3d189 (patch)
tree7fabd26a4a096ccd9615acb43e8d8f2b161849ab /src/network/kernel
parent1401d0a8b232278f5f07c9c34ed537885e7f17e2 (diff)
downloadQt-e49bf3037c2cd170c93c35f7657bef0e7af3d189.zip
Qt-e49bf3037c2cd170c93c35f7657bef0e7af3d189.tar.gz
Qt-e49bf3037c2cd170c93c35f7657bef0e7af3d189.tar.bz2
Small optimization.
Do not use route info for addresses other than IPV4.
Diffstat (limited to 'src/network/kernel')
-rw-r--r--src/network/kernel/qnetworkinterface_symbian.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/network/kernel/qnetworkinterface_symbian.cpp b/src/network/kernel/qnetworkinterface_symbian.cpp
index e3a282f..d3aafa3 100644
--- a/src/network/kernel/qnetworkinterface_symbian.cpp
+++ b/src/network/kernel/qnetworkinterface_symbian.cpp
@@ -228,6 +228,10 @@ static QList<QNetworkInterfacePrivate *> interfaceListing()
QNetworkAddressEntry entry = iface->addressEntries.at(eindex);
if(entry.ip() != ifAddr) {
continue;
+ } else if(entry.ip().protocol() != QAbstractSocket::IPv4Protocol) {
+ // skip if not IPv4 address (e.g. IPv6)
+ // as results not reliable on Symbian
+ continue;
} else {
routeInfo.iNetMask.Output(address);
QHostAddress netmask(qstringFromDesc(address));