[Winpcap-users] avoid recapture of transmitted packets

Gianluca Varenni gianluca.varenni at cacetech.com
Tue Aug 14 18:50:03 GMT 2007


Asaf,

please have a look at the userLevelBridge sample in the WinPcap devpack. It shows how to use a specific pcap_open flag to disable looping back transmitted packets. Please note that the flag is available from win2k on.

Have a nice day
GV

  ----- Original Message ----- 
  From: Oron Asaf 
  To: winpcap-users at winpcap.org 
  Sent: Tuesday, August 14, 2007 6:34 AM
  Subject: [Winpcap-users] avoid recapture of transmitted packets


  Hi 

   

  I wrote a real time application which uses wpcap for receiving and transmitting packets. The problem is that when the app transmits a packet it receives it immediately as a captured packet. Since my app uses various mac addresses its not always easy to distinguish between capturing "real" traffic and the transmitted traffic. Currently I keep a copy of each transmitted packet for about 1ms and compare it to all incoming packets, if one is identical I drop it. Is there a better method to separate transmitted and received  packets so they don't mix?

   

  Asaf



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


  _______________________________________________
  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/20070814/ed5e0994/attachment.htm


More information about the Winpcap-users mailing list