<!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=Verdana size=2>Hi,</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana size=2>The problem we are facing </FONT></DIV>
<DIV><FONT face=Verdana size=2>&nbsp;</FONT></DIV>
<DIV><FONT face=Verdana size=2>1)&nbsp;&nbsp; After certain loops the 
<STRONG>pcap_findalldevs&nbsp; </STRONG>starts returning Zero 
device.</FONT></DIV>
<DIV><FONT face=Verdana size=2>2)&nbsp;&nbsp; After every loop the memory usage 
increaments approx 1000 K.</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2><FONT face=Verdana>The solution given by </FONT><A 
title=vbor@isd.dp.ua href="mailto:vbor@isd.dp.ua"><FONT face=Verdana>Vasily 
Borovyak</FONT></A><FONT face=Verdana>&nbsp; did not solve the problem( now we 
are using <STRONG>pcap_freealldevs</STRONG> before continue as 
suggested)</FONT></FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana size=2>Also Is there any other way /function (like 
pcap_findalldevs )&nbsp; to find all devices supported by 
pcap_open_live()</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana size=2>Thanx</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana size=2>Regards,</FONT></DIV>
<DIV><FONT face=Verdana size=2>Santosh</FONT>&nbsp;</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=santosh.payasi@bytechindia.com 
  href="mailto:santosh.payasi@bytechindia.com">Test</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 3:07 
PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Winpcap-users] after 32 
  loops pcap_findalldevs() startsreturning0 adapters. Why?</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=Arial size=2>Hi Friend,</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>Thanx for u r quick response.</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>elaburate what you mean to say.</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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">&lt;vbor@isd.dp.ua&gt;</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>
  <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>