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

Alexandre Julliard julliard at wine.codeweavers.com
Mon Aug 18 16:08:48 CDT 2014


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

Author: André Hentschel <nerv at dawncrow.de>
Date:   Fri Aug 15 21:54:03 2014 +0200

wpcap: Implement pcap_snapshot.

---

 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 f5402a4..29aa08c 100644
--- a/dlls/wpcap/wpcap.c
+++ b/dlls/wpcap/wpcap.c
@@ -118,6 +118,12 @@ int CDECL wine_pcap_setfilter(pcap_t *p, struct bpf_program *fp)
     return pcap_setfilter(p, fp);
 }
 
+int CDECL wine_pcap_snapshot(pcap_t *p)
+{
+    TRACE("(%p)\n", p);
+    return pcap_snapshot(p);
+}
+
 int CDECL wine_pcap_stats(pcap_t *p, struct pcap_stat *ps)
 {
     TRACE("(%p %p)\n", p, ps);
diff --git a/dlls/wpcap/wpcap.spec b/dlls/wpcap/wpcap.spec
index 2af9197..6dd67a1 100644
--- a/dlls/wpcap/wpcap.spec
+++ b/dlls/wpcap/wpcap.spec
@@ -71,7 +71,7 @@
 @ stub pcap_setnonblock
 @ stub pcap_setsampling
 @ stub pcap_setuserbuffer
-@ stub pcap_snapshot
+@ cdecl pcap_snapshot(ptr) wine_pcap_snapshot
 @ cdecl pcap_stats(ptr ptr) wine_pcap_stats
 @ stub pcap_stats_ex
 @ stub pcap_strerror




More information about the wine-cvs mailing list