wpcap: Implement pcap_findalldevs.

oldstable
André Hentschel 2014-08-10 23:08:40 +02:00 committed by Alexandre Julliard
parent 0cbd82f629
commit ca1aa1cfa2
2 changed files with 14 additions and 1 deletions

View File

@ -22,6 +22,19 @@
#include "wine/debug.h"
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)
{

View File

@ -24,7 +24,7 @@
@ stub pcap_dump_open
@ stub pcap_file
@ stub pcap_fileno
@ stub pcap_findalldevs
@ cdecl pcap_findalldevs(ptr str) wine_pcap_findalldevs
@ stub pcap_findalldevs_ex
@ stub pcap_freealldevs
@ stub pcap_freecode