From f0f57c22bf7c9b25b708b51d423a9a19db2b35c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Hentschel?= Date: Tue, 19 Aug 2014 00:02:03 +0200 Subject: [PATCH] wpcap: Implement pcap_setnonblock. --- 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 b1a2149e9e3..16b92f412d0 100644 --- a/dlls/wpcap/wpcap.c +++ b/dlls/wpcap/wpcap.c @@ -256,6 +256,12 @@ int CDECL wine_pcap_setfilter(pcap_t *p, struct bpf_program *fp) return pcap_setfilter(p, fp); } +int CDECL wine_pcap_setnonblock(pcap_t *p, int nonblock, char *errbuf) +{ + TRACE("(%p %i %p)\n", p, nonblock, errbuf); + return pcap_setnonblock(p, nonblock, errbuf); +} + int CDECL wine_pcap_snapshot(pcap_t *p) { TRACE("(%p)\n", p); diff --git a/dlls/wpcap/wpcap.spec b/dlls/wpcap/wpcap.spec index 13a8f7fb320..33cc9ef74cf 100644 --- a/dlls/wpcap/wpcap.spec +++ b/dlls/wpcap/wpcap.spec @@ -68,7 +68,7 @@ @ cdecl pcap_setfilter(ptr ptr) wine_pcap_setfilter @ stub pcap_setmintocopy @ stub pcap_setmode -@ stub pcap_setnonblock +@ cdecl pcap_setnonblock(ptr long ptr) wine_pcap_setnonblock @ stub pcap_setsampling @ stub pcap_setuserbuffer @ cdecl pcap_snapshot(ptr) wine_pcap_snapshot