[Winpcap-users] Problem with repetitive calls to pcap_findalldevs

Gianluca Varenni gianluca.varenni at cacetech.com
Tue Oct 31 16:13:31 GMT 2006


Can you post a very stripped down version of your code so that we can try to replicate the issue?

Have a nice day
GV
  ----- Original Message ----- 
  From: Balazs, Monika 
  To: winpcap-users at winpcap.org 
  Sent: Tuesday, October 31, 2006 6:50 AM
  Subject: [Winpcap-users] Problem with repetitive calls to pcap_findalldevs


  My application calls an open function in which it's stated the open adaptor sequence of winpcap comands including pcap_findalldevs.
  Afterward it is implemented in a different thread the functionality of listening on the selected adaptor and the functionality of stop listening.
  I've observed that after following the sequence listen-stop-listen my application crashes. Following  the bug in debug the following steps happen:
      -    pcap_findalldevs
      - > pcap_add_if_win32
      - > add_or_find_if
      - > pcap_open_live

  And he is trying to open a generic adaptor descovered by findalldevs and crashes...

  My  question is why this happens the second time I call pcap_findalldevs when I had already closed the adaptor in the call of stop listening..is this a problem with Winpcap or with my code...

  Thanks a lot for any info
  Moni


------------------------------------------------------------------------------


  _______________________________________________
  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/20061031/c3f6adf4/attachment.htm


More information about the Winpcap-users mailing list