mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 09:35:52 +00:00
nsiproxy.sys: Detect PPP interface type from flags on Linux.
VPN interfaces often have ARPHRD_NONE in ifr_hwaddr.sa_data but IFF_POINTOPOINT flag set.
This commit is contained in:
parent
b87ee7d484
commit
1ea5d470a2
|
@ -170,6 +170,9 @@ static NTSTATUS if_get_physical( const char *name, UINT *type, IF_PHYSICAL_ADDRE
|
|||
break;
|
||||
}
|
||||
|
||||
if (*type == MIB_IF_TYPE_OTHER && !ioctl( fd, SIOCGIFFLAGS, &ifr ) && ifr.ifr_flags & IFF_POINTOPOINT)
|
||||
*type = MIB_IF_TYPE_PPP;
|
||||
|
||||
err:
|
||||
close( fd );
|
||||
return ret;
|
||||
|
|
Loading…
Reference in a new issue