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:
Paul Gofman 2023-05-23 19:52:45 -06:00 committed by Alexandre Julliard
parent b87ee7d484
commit 1ea5d470a2

View file

@ -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;