From 1ed9760bdf6c787b0700e9c56070b16dc48ded8f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Hentschel?= Date: Tue, 12 Aug 2014 00:35:45 +0200 Subject: [PATCH] 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 3ddc3c41a40..1a7f280b9ed 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 e52562a1348..75a5bfd0afd 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 -- 2.11.4.GIT