[Winpcap-users] pcap_findalldevs on Windows 7

Kodjo Suprem miniscalope at gmail.com
Wed Dec 8 10:15:58 PST 2010


All i can say is it's not a Win7 problem because WinPcap works fine on my
win7 system.
Maybe it's a problem of admin rights. My device list is empty if i don't run
my program as root on linux.


2010/12/2 oleg levin <levin_oleg at yahoo.com>

> Hello,
>
> We use WinPcap 4.1.2 library on Windows 7 and have a problem in
> pcap_findalldevs
> function call.
> The function returns 0 (success), but interfaces list is empty (equels to
> 0):
>
> int main(int argc,char*argv[])
> {
>     pcap_if_t *pcap_ifs = NULL;
>     char pcap_error_buf[PCAP_ERRBUF_SIZE];
>
>     if(pcap_findalldevs(&pcap_ifs, pcap_error_buf)<0)
>           fprintf(stderr,"Error:pcap_findalldevs failed.\n");
>     else if (!pcap_ifs)
>           fprintf(stderr,"Error:failed to fetch network interfaces
> list.\n");
>    return 0;
> }
>
> C:\>PcapTest.exe
> Error: failed to fetch network interface list.
>
> Can you please help to solve this issue?
>
> Thanks,
> Oleg Levin
> Software engineer
> Correlsense
> IT Reliability™ through Transaction Management
>
>
>
> _______________________________________________
> Winpcap-users mailing list
> Winpcap-users at winpcap.org
> https://www.winpcap.org/mailman/listinfo/winpcap-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winpcap.org/pipermail/winpcap-users/attachments/20101208/4b3a032f/attachment.htm 


More information about the Winpcap-users mailing list