From: André Hentschel Subject: [15/15] wpcap: Implement pcap_open Message-Id: <53EE663D.1010807@dawncrow.de> Date: Fri, 15 Aug 2014 21:57:49 +0200 --- 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 111af0d..d58386d 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 65697b7..425270c 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