=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: wpcap: Implement pcap_open.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Aug 20 14:30:34 CDT 2014
Module: wine
Branch: master
Commit: c070c46ed4ff0d6341972c47a420f5121b72a935
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c070c46ed4ff0d6341972c47a420f5121b72a935
Author: André Hentschel <nerv at dawncrow.de>
Date: Mon Aug 18 23:58:06 2014 +0200
wpcap: Implement pcap_open.
---
dlls/wpcap/wpcap.c | 11 +++++++++++
dlls/wpcap/wpcap.spec | 2 +-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/dlls/wpcap/wpcap.c b/dlls/wpcap/wpcap.c
index fb36326..aedfcc6 100644
--- a/dlls/wpcap/wpcap.c
+++ b/dlls/wpcap/wpcap.c
@@ -196,6 +196,17 @@ int CDECL wine_pcap_minor_version(pcap_t *p)
return pcap_minor_version(p);
}
+#define PCAP_OPENFLAG_PROMISCUOUS 1
+
+pcap_t* CDECL wine_pcap_open(const char *source, int snaplen, int flags, int read_timeout,
+ void *auth, char *errbuf)
+{
+ int promisc = flags & PCAP_OPENFLAG_PROMISCUOUS;
+ FIXME("(%s %i %i %i %p %p): partial stub\n", debugstr_a(source), snaplen, flags, read_timeout,
+ auth, errbuf);
+ return pcap_open_live(source, snaplen, promisc, read_timeout, errbuf);
+}
+
pcap_t* CDECL wine_pcap_open_live(const char *source, int snaplen, int promisc, int to_ms,
char *errbuf)
{
diff --git a/dlls/wpcap/wpcap.spec b/dlls/wpcap/wpcap.spec
index 718d0fe..8b8a37e 100644
--- a/dlls/wpcap/wpcap.spec
+++ b/dlls/wpcap/wpcap.spec
@@ -47,7 +47,7 @@
@ stub pcap_next_ex
@ stub pcap_offline_filter
@ stub pcap_offline_read
-@ stub pcap_open
+@ cdecl pcap_open(str long long long ptr ptr) wine_pcap_open
@ stub pcap_open_dead
@ cdecl pcap_open_live(str long long long ptr) wine_pcap_open_live
@ stub pcap_open_offline
More information about the wine-cvs
mailing list