[Winpcap-users] after 32 loops pcap_findalldevs()
startsreturning0 adapters. Why?
Test
santosh.payasi at bytechindia.com
Thu May 11 10:19:03 GMT 2006
Hi,
The problem we are facing
1) After certain loops the pcap_findalldevs starts returning Zero device.
2) After every loop the memory usage increaments approx 1000 K.
The solution given by Vasily Borovyak did not solve the problem( now we are using pcap_freealldevs before continue as suggested)
Also Is there any other way /function (like pcap_findalldevs ) to find all devices supported by pcap_open_live()
Thanx
Regards,
Santosh
----- Original Message -----
From: Test
To: winpcap-users at winpcap.org
Sent: Thursday, May 11, 2006 3:07 PM
Subject: Re: [Winpcap-users] after 32 loops pcap_findalldevs() startsreturning0 adapters. Why?
Hi Friend,
Thanx for u r quick response.
elaburate what you mean to say.
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.
Regards,
Santosh
----- Original Message -----
From: Vasily Borovyak
To: winpcap-users at winpcap.org
Sent: Thursday, May 11, 2006 2:42 PM
Subject: Re: [Winpcap-users] after 32 loops pcap_findalldevs() starts returning0 adapters. Why?
I'm not sure but I think the code logic is wrong. I would recommend you to put pcap_freealldevs(allDevs);
call before each continue statement.
Test wrote:
Hi All,
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.
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.
SKIPPED
--
Best regards. Vasily Borovyak <vbor at isd.dp.ua>
----------------------------------------------------------------------------
_______________________________________________
Winpcap-users mailing list
Winpcap-users at winpcap.org
https://www.winpcap.org/mailman/listinfo/winpcap-users
------------------------------------------------------------------------------
_______________________________________________
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/20060511/ae45be1b/attachment-0001.htm
More information about the Winpcap-users
mailing list