[Winpcap-users] pcap_setbuff occasional failure

Sassone, Ed Ed.Sassone at autonomy.com
Wed Oct 8 20:11:47 GMT 2008


Essentially a critical section around all the adapter initialization
calls so it will only be in one set a time, across all threads and
adapters.  Unfortunately I didn't have it print the pcap_geterr string.
I just put that in.  It may be awhile until we catch it in the act.

 

thanks

 

Ed Sassone

 

From: winpcap-users-bounces at winpcap.org
[mailto:winpcap-users-bounces at winpcap.org] On Behalf Of Gianluca Varenni
Sent: Wednesday, October 08, 2008 2:05 PM
To: winpcap-users at winpcap.org
Subject: Re: [Winpcap-users] pcap_setbuff occasional failure

 

Serializing pcap_setbuff should not be necessary (serializing against
what? multiple calls on the same adapter? on the same pcap_t handle?).

 

Expecially considering that the only solution is a reboot, I would think
that there is some sort of leak either in the WinPcap driver or in some
other driver in the system. What's the exact error message returned by
pcap_setbuff?

Also, after the problem occurs and before rebooting, open Task Manager,
go to the Performance Tab and send me a screenshot of it, if possible.

 

Have a nice day

GV

 

	----- Original Message ----- 

	From: Sassone, Ed <mailto:Ed.Sassone at autonomy.com>  

	To: winpcap-users at winpcap.org 

	Sent: Monday, October 06, 2008 2:15 PM

	Subject: [Winpcap-users] pcap_setbuff occasional failure

	 

	Hi

	 

	Every so often in our application during startup, the
pcap_setbuff call will fail.  We are unable to re-create the problem but
it seems to happen after the application has been stopped and started a
number of times.  Once the failure occurs it will continue to occur,
until a reboot.  Our app is multithreaded with two threads starting per
interface card, and we can have more than one interface card configured.
The buffer size specified can vary but it's usually around 5-10 MB.  I
have recently put in some changes to serialize the command in case there
is a timing issue, as I'm not sure if the call is thread safe.  I
remember there was thread issue with the filter command.  This is on
Windows 2003.  Any other ideas?  

	 

	thanks

	 

	Ed Sassone

	 

	
________________________________


	_______________________________________________
	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/20081008/66d5a48c/attachment.htm


More information about the Winpcap-users mailing list