[Winpcap-users] after 32 loops pcap_findalldevs() starts
returning0 adapters. Why?
Test
santosh.payasi at bytechindia.com
Thu May 11 09:37:21 GMT 2006
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winpcap.org/pipermail/winpcap-users/attachments/20060511/6eadce14/attachment.htm
More information about the Winpcap-users
mailing list