All i can say is it's not a Win7 problem because WinPcap works fine on my win7 system.<div>Maybe it's a problem of admin rights. My device list is empty if i don't run my program as root on linux.<br>
<br><br><div class="gmail_quote">2010/12/2 oleg levin <span dir="ltr"><<a href="mailto:levin_oleg@yahoo.com">levin_oleg@yahoo.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello,<br>
<br>
We use WinPcap 4.1.2 library on Windows 7 and have a problem in pcap_findalldevs<br>
function call.<br>
The function returns 0 (success), but interfaces list is empty (equels to 0):<br>
<br>
int main(int argc,char*argv[])<br>
{<br>
pcap_if_t *pcap_ifs = NULL;<br>
char pcap_error_buf[PCAP_ERRBUF_SIZE];<br>
<br>
if(pcap_findalldevs(&pcap_ifs, pcap_error_buf)<0)<br>
fprintf(stderr,"Error:pcap_findalldevs failed.\n");<br>
else if (!pcap_ifs)<br>
fprintf(stderr,"Error:failed to fetch network interfaces list.\n");<br>
return 0;<br>
}<br>
<br>
C:\>PcapTest.exe<br>
Error: failed to fetch network interface list.<br>
<br>
Can you please help to solve this issue? <br>
<br>
Thanks,<br>
Oleg Levin<br>
Software engineer<br>
Correlsense<br>
IT Reliability™ through Transaction Management<br>
<br>
<br>
<br>
_______________________________________________<br>
Winpcap-users mailing list<br>
<a href="mailto:Winpcap-users@winpcap.org">Winpcap-users@winpcap.org</a><br>
<a href="https://www.winpcap.org/mailman/listinfo/winpcap-users" target="_blank">https://www.winpcap.org/mailman/listinfo/winpcap-users</a><br>
</blockquote></div><br></div>