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

wpcap: Implement pcap_findalldevs.

parent 0cbd82f6
...@@ -22,6 +22,19 @@ ...@@ -22,6 +22,19 @@
#include "wine/debug.h" #include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(wpcap); WINE_DEFAULT_DEBUG_CHANNEL(wpcap);
WINE_DECLARE_DEBUG_CHANNEL(winediag);
int CDECL wine_pcap_findalldevs(pcap_if_t **alldevsp, char *errbuf)
{
int ret;
TRACE("(%p %p)\n", alldevsp, errbuf);
ret = pcap_findalldevs(alldevsp, errbuf);
if(alldevsp && !*alldevsp)
ERR_(winediag)("Failed to access raw network (pcap), this requires special permissions.\n");
return ret;
}
const char* CDECL wine_pcap_lib_version(void) const char* CDECL wine_pcap_lib_version(void)
{ {
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
@ stub pcap_dump_open @ stub pcap_dump_open
@ stub pcap_file @ stub pcap_file
@ stub pcap_fileno @ stub pcap_fileno
@ stub pcap_findalldevs @ cdecl pcap_findalldevs(ptr str) wine_pcap_findalldevs
@ stub pcap_findalldevs_ex @ stub pcap_findalldevs_ex
@ stub pcap_freealldevs @ stub pcap_freealldevs
@ stub pcap_freecode @ stub pcap_freecode
......
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