=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: wpcap: Implement pcap_stats.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Aug 15 13:53:11 CDT 2014


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

Author: André Hentschel <nerv at dawncrow.de>
Date:   Tue Aug 12 00:30:47 2014 +0200

wpcap: Implement pcap_stats.

---

 dlls/wpcap/wpcap.c    | 6 ++++++
 dlls/wpcap/wpcap.spec | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/dlls/wpcap/wpcap.c b/dlls/wpcap/wpcap.c
index 3639de4..0393ad1 100644
--- a/dlls/wpcap/wpcap.c
+++ b/dlls/wpcap/wpcap.c
@@ -73,3 +73,9 @@ pcap_t* CDECL wine_pcap_open_live(const char *source, int snaplen, int promisc,
     TRACE("(%p %i %i %i %p)\n", source, snaplen, promisc, to_ms, errbuf);
     return pcap_open_live(source, snaplen, promisc, to_ms, errbuf);
 }
+
+int CDECL wine_pcap_stats(pcap_t *p, struct pcap_stat *ps)
+{
+    TRACE("(%p %p)\n", p, ps);
+    return pcap_stats(p, ps);
+}
diff --git a/dlls/wpcap/wpcap.spec b/dlls/wpcap/wpcap.spec
index 2a87fba..5186276 100644
--- a/dlls/wpcap/wpcap.spec
+++ b/dlls/wpcap/wpcap.spec
@@ -72,7 +72,7 @@
 @ stub pcap_setsampling
 @ stub pcap_setuserbuffer
 @ stub pcap_snapshot
-@ stub pcap_stats
+@ cdecl pcap_stats(ptr ptr) wine_pcap_stats
 @ stub pcap_stats_ex
 @ stub pcap_strerror
 @ stub wsockinit




More information about the wine-cvs mailing list