iphlpapi: Provide statistics on non-ethernet based interfaces too.

This commit is contained in:
Huw Davies 2009-12-02 10:15:47 +00:00 committed by Alexandre Julliard
parent b644d11333
commit 8dd5c04c32
1 changed files with 1 additions and 1 deletions

View File

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