[Winpcap-users] pcap_setbuff occasional failure

Gianluca Varenni gianluca.varenni at cacetech.com
Wed Oct 8 19:05:21 GMT 2008


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 
  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/b499f8ca/attachment.htm


More information about the Winpcap-users mailing list