<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content=text/html;charset=KOI8-R>
<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi Friend,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanx for u r quick response.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>elaburate what you mean to say.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The reason why we have put continue after each
pcap_freealldevs is that in case of any error it will go back to fetching the
device list.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Regards,</FONT></DIV>
<DIV><FONT face=Arial size=2>Santosh</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=vbor@isd.dp.ua href="mailto:vbor@isd.dp.ua">Vasily Borovyak</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=winpcap-users@winpcap.org
href="mailto:winpcap-users@winpcap.org">winpcap-users@winpcap.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, May 11, 2006 2:42
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Winpcap-users] after 32
loops pcap_findalldevs() starts returning0 adapters. Why?</DIV>
<DIV><BR></DIV><TT>I'm not sure but I think the code logic is wrong. I would
recommend you to put </TT><B><FONT size=+0><FONT
size=2>pcap_freealldevs(allDevs);</FONT></FONT></B><FONT size=+0><FONT size=2>
</FONT></FONT><BR><TT>call before each <B>continue</B>
statement.<BR></TT><BR>Test wrote:
<BLOCKQUOTE cite=mid001201c674d8$9cfc0d80$68a801c0@bipldel001 type="cite">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
<DIV><FONT face=Arial size=2>Hi All, </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>We are using WinPcap 3.0 to create an
application, the problem wwhich we are encountering is after 32 loops
pcap_findalldevs() starts returning 0 adapters.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>We are simply counting the available adapters
after 1/2 seconds . Following is the code which we are using.Kindly advise
why after approx 32 loops it starts returning 0 adapters.</FONT></DIV>
<DIV> </DIV></BLOCKQUOTE>SKIPPED<BR><PRE class=moz-signature cols="80">--
Best regards. Vasily Borovyak <A class=moz-txt-link-rfc2396E href="mailto:vbor@isd.dp.ua"><vbor@isd.dp.ua></A></PRE>
<P>
<HR>
<P></P>_______________________________________________<BR>Winpcap-users
mailing
list<BR>Winpcap-users@winpcap.org<BR>https://www.winpcap.org/mailman/listinfo/winpcap-users<BR></BLOCKQUOTE></BODY></HTML>