<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#00ffff>
<DIV><FONT size=2>Thanks,</FONT></DIV>
<DIV><FONT size=2>Since you probably know better that me, which function did you
use- was it </FONT><FONT size=3>pcap_sendpacket ?</FONT></DIV>
<DIV>Regards</DIV>
<DIV>I. lesher</DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=carlomedas@gmail.com href="mailto:carlomedas@gmail.com">Carlo
Medas</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=winpcap-users@winpcap.org
href="mailto:winpcap-users@winpcap.org">winpcap-users@winpcap.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, October 24, 2008 8:41
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Winpcap-users] Real time
sending packets</DIV>
<DIV><BR></DIV>Dear Lesher,
<DIV><BR></DIV>
<DIV>please take my answer until Gianluca or some other guru officially
answers you.</DIV>
<DIV><BR></DIV>
<DIV>I've been doing something like you and I use a single pcap session with
success. Tested on Linux, Windows and Mac.</DIV>
<DIV><BR></DIV>
<DIV>Br,</DIV>
<DIV><BR></DIV>
<DIV>\Carlo<BR><BR>
<DIV class=gmail_quote>On Thu, Oct 23, 2008 at 6:33 PM, <SPAN dir=ltr><<A
href="mailto:ceo@triplebit.com">ceo@triplebit.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">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.<BR>What is the most aprroprite
function for that- the users guide speaks about pcap_sendpacket and
pcap_sndqueue_transmit?<BR><BR>Another question-<BR>Does the open function,
pcap_open should be called once or twice(once again for the packet send) for
the above procedure?<BR><BR>I.
Lesher<BR><BR><BR><BR>_______________________________________________<BR>Winpcap-users
mailing list<BR><A href="mailto:Winpcap-users@winpcap.org"
target=_blank>Winpcap-users@winpcap.org</A><BR><A
href="https://www.winpcap.org/mailman/listinfo/winpcap-users"
target=_blank>https://www.winpcap.org/mailman/listinfo/winpcap-users</A><BR></BLOCKQUOTE></DIV><BR></DIV>
<P>
<HR>
<P></P>_______________________________________________<BR>Winpcap-users
mailing
list<BR>Winpcap-users@winpcap.org<BR>https://www.winpcap.org/mailman/listinfo/winpcap-users<BR></BLOCKQUOTE></BODY></HTML>