[Winpcap-users] RE: simultaneous read and write on a interface

Marcel van Lieshout marcel at hmcs.nl
Tue Jul 11 14:02:32 GMT 2006


The reception of self-sent packets can be avoided by using flag 
PCAP_OPENFLAG_NOCAPTURE_LOCAL which is new in V4 and works like a charm.

Marcel

Mark Buchanan wrote:
> I have found no issues with using the same adapter opened in the usual
> way to both read and write packets. Just combine the code given in the
> examples for both reading and writing packets in the same program. Be
> aware that whatever you write will be received by the same adapter -
> filters can be coded to avoid problems.
>
> Mark Buchanan
>
> Original:
>
> Date: Mon, 10 Jul 2006 13:55:58 +0100
> From: "ahsan askari" <ahsanaskari at gmail.com>
> Subject: [Winpcap-users] simultaneous read and write on a interface.
> To: winpcap-users at winpcap.org
> Message-ID:
> <3cd044c90607100555m5400c3c4l50f55b6a8eaa0864 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
>
> Could anyone please tell me that if I want to read and write packets
> on
> the same interface simultaneously, how could I do that ? Whether I
> just
> have to call the required function for reading and writing and the
> winpcap library manages teh simultaneous read and write it self or do
> I
> have to employ a mechanism my self to do this ?
>
> Thank you
> Ahsan
> --------------------------------------------------------
>
>
> Mark Buchanan
>
>
> Senior Engineer, Controls Systems
> Giffels Associates Limited
>
>
>
> Mark.Buchanan at giffels.com |  T 416 675 9750 Ext. 5253  |  F 416 798
> 5559  |  giffels.com
>
>
>    This communication is intended solely for the addressee(s) and
>    contains information that is privileged, confidential and subject
>    to copyright. Any unauthorized use, copying, review or disclosure
> is prohibited. If received in error, please notify us immediately by
> return e-mail.
>
>
> --------------------------------------------------------
>
> _______________________________________________
> Winpcap-users mailing list
> Winpcap-users at winpcap.org
> https://www.winpcap.org/mailman/listinfo/winpcap-users 



More information about the Winpcap-users mailing list