Commit c070c46e authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

wpcap: Implement pcap_open.

parent 5528d728
......@@ -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)
{
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment