[Winpcap-users] Real time sending packets

ceo at triplebit.com ceo at triplebit.com
Fri Oct 24 07:36:12 GMT 2008


Thanks,
Since you probably know better that me, which function did you use- was it pcap_sendpacket ?
Regards
I. lesher
  ----- Original Message ----- 
  From: Carlo Medas 
  To: winpcap-users at winpcap.org 
  Sent: Friday, October 24, 2008 8:41 AM
  Subject: Re: [Winpcap-users] Real time sending packets


  Dear Lesher,


  please take my answer until Gianluca or some other guru officially answers you.


  I've been doing something like you and I use a single pcap session with success. Tested on Linux, Windows and Mac.


  Br,


  \Carlo


  On Thu, Oct 23, 2008 at 6:33 PM, <ceo at triplebit.com> wrote:

    I want to inject UDP packets to the interface in real time. In other words, the program should run endlessly,capturing  the interface and for every input packet(with the right filter), it should establish a packet from this data and send it again to a third address.
    What is the most aprroprite function for that- the users guide speaks about pcap_sendpacket and pcap_sndqueue_transmit?

    Another question-
    Does the open function, pcap_open should be called once or twice(once again for the packet send) for the above procedure?

    I. Lesher



    _______________________________________________
    Winpcap-users mailing list
    Winpcap-users at winpcap.org
    https://www.winpcap.org/mailman/listinfo/winpcap-users





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


  _______________________________________________
  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/20081024/934bb674/attachment.htm


More information about the Winpcap-users mailing list