Eric Durbin : iphlpapi: Implement getNumUdpEntries on FreeBSD.

Alexandre Julliard julliard at winehq.org
Thu Jun 26 06:48:02 CDT 2008


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

Author: Eric Durbin <eadurbin at freebsd.org>
Date:   Tue Jun 24 22:43:21 2008 -0500

iphlpapi: Implement getNumUdpEntries on FreeBSD.

---

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

diff --git a/dlls/iphlpapi/ipstats.c b/dlls/iphlpapi/ipstats.c
index 3a537b1..fa2826d 100644
--- a/dlls/iphlpapi/ipstats.c
+++ b/dlls/iphlpapi/ipstats.c
@@ -1145,7 +1145,11 @@ DWORD getArpTable(PMIB_IPNETTABLE *ppIpNetTable, HANDLE heap, DWORD flags)
 
 DWORD getNumUdpEntries(void)
 {
+#if defined(HAVE_SYS_SYSCTL_H) && defined(HAVE_NETINET_IN_PCB_H)
+   return getNumWithOneHeader ("net.inet.udp.pcblist");
+#else
   return getNumWithOneHeader("/proc/net/udp");
+#endif
 }
 
 DWORD getUdpTable(PMIB_UDPTABLE *ppUdpTable, HANDLE heap, DWORD flags)




More information about the wine-cvs mailing list