=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: wpcap: Implement pcap_setfilter.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Aug 15 13:53:12 CDT 2014
Module: wine
Branch: master
Commit: 1ed9760bdf6c787b0700e9c56070b16dc48ded8f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1ed9760bdf6c787b0700e9c56070b16dc48ded8f
Author: André Hentschel <nerv at dawncrow.de>
Date: Tue Aug 12 00:35:45 2014 +0200
wpcap: Implement pcap_setfilter.
---
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 3ddc3c4..1a7f280 100644
--- a/dlls/wpcap/wpcap.c
+++ b/dlls/wpcap/wpcap.c
@@ -106,6 +106,12 @@ int CDECL wine_pcap_setbuff(pcap_t * p, int dim)
return 0;
}
+int CDECL wine_pcap_setfilter(pcap_t *p, struct bpf_program *fp)
+{
+ TRACE("(%p %p)\n", p, fp);
+ return pcap_setfilter(p, fp);
+}
+
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 e52562a..75a5bfd 100644
--- a/dlls/wpcap/wpcap.spec
+++ b/dlls/wpcap/wpcap.spec
@@ -65,7 +65,7 @@
@ stub pcap_sendqueue_transmit
@ stub pcap_set_datalink
@ cdecl pcap_setbuff(ptr long) wine_pcap_setbuff
-@ stub pcap_setfilter
+@ cdecl pcap_setfilter(ptr ptr) wine_pcap_setfilter
@ stub pcap_setmintocopy
@ stub pcap_setmode
@ stub pcap_setnonblock
More information about the wine-cvs
mailing list