iphlpapi: Provide statistics on non-ethernet based interfaces too.
This commit is contained in:
parent
b644d11333
commit
8dd5c04c32
|
@ -353,7 +353,7 @@ DWORD getInterfaceStatsByName(const char *name, PMIB_IFROW entry)
|
|||
for ( end = buf + needed; buf < end; buf += ifm->ifm_msglen)
|
||||
{
|
||||
ifm = (struct if_msghdr *) buf;
|
||||
if(ifm->ifm_type == RTM_IFINFO && ifm->ifm_data.ifi_type == IFT_ETHER)
|
||||
if(ifm->ifm_type == RTM_IFINFO)
|
||||
{
|
||||
ifdata = ifm->ifm_data;
|
||||
entry->dwMtu = ifdata.ifi_mtu;
|
||||
|
|
Loading…
Reference in New Issue