From 5d0e67855d73c45e244ac9ea1b8bd6a0613b946a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Hentschel?= Date: Tue, 12 Aug 2014 00:30:47 +0200 Subject: [PATCH] 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 3639de42119..0393ad15113 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 2a87fba55d4..51862762a9e 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