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

Alexandre Julliard julliard at winehq.org
Wed Dec 2 10:22:13 CST 2009


Module: wine
Branch: master
Commit: 8dd5c04c32bdb471fbfc9519f459f287dc4bb60c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=8dd5c04c32bdb471fbfc9519f459f287dc4bb60c

Author: Huw Davies <huw at codeweavers.com>
Date:   Wed Dec  2 10:15:47 2009 +0000

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

---

 dlls/iphlpapi/ipstats.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/iphlpapi/ipstats.c b/dlls/iphlpapi/ipstats.c
index 69f3376..8847e09 100644
--- a/dlls/iphlpapi/ipstats.c
+++ b/dlls/iphlpapi/ipstats.c
@@ -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;




More information about the wine-cvs mailing list