Set QNetworkInterface::IsPointToPoint on Windows
This was never set on Windows Xp or later as we only checked for this in the old interfaceListingWin2K() function. Task-number: QTBUG-10170 Change-Id: Ib0808a945d9d1b31019967a69e668ec216702799 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
85e9ab3e79
commit
41ad3ee7cb
@ -182,6 +182,8 @@ static QList<QNetworkInterfacePrivate *> interfaceListingWinXP()
|
||||
iface->flags |= QNetworkInterface::IsUp | QNetworkInterface::IsRunning;
|
||||
if ((ptr->Flags & IP_ADAPTER_NO_MULTICAST) == 0)
|
||||
iface->flags |= QNetworkInterface::CanMulticast;
|
||||
if (ptr->IfType == IF_TYPE_PPP)
|
||||
iface->flags |= QNetworkInterface::IsPointToPoint;
|
||||
|
||||
iface->name = QString::fromLocal8Bit(ptr->AdapterName);
|
||||
iface->friendlyName = QString::fromWCharArray(ptr->FriendlyName);
|
||||
|
@ -94,6 +94,9 @@ QT_BEGIN_NAMESPACE
|
||||
# define MIB_IF_TYPE_LOOPBACK 24
|
||||
# define MIB_IF_TYPE_SLIP 28
|
||||
|
||||
// definitions from Ipifcons.h
|
||||
#define IF_TYPE_PPP 23
|
||||
|
||||
#endif
|
||||
// copied from qnativesocketengine_win.cpp
|
||||
struct qt_in6_addr {
|
||||
|
Loading…
Reference in New Issue
Block a user