Yes I call exactly that method: as per my code snippet below.<div><br><div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre">        </span>if (pcap_sendpacket(m_impl->pcapSession, packet, size) != 0)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>{</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>std::string error = pcap_geterr(m_impl->pcapSession);</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>throw SendPacketErrorException(error);</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>}</div><div><br></div><br><div class="gmail_quote">On Fri, Oct 24, 2008 at 9:36 AM, <span dir="ltr"><<a href="mailto:ceo@triplebit.com">ceo@triplebit.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div 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><div></div><div class="Wj3C7c">
<div style="font:10pt arial">----- Original Message ----- </div>
<div style="background:#e4e4e4;font:10pt arial"><b>From:</b>
<a title="carlomedas@gmail.com" href="mailto:carlomedas@gmail.com" target="_blank">Carlo
Medas</a> </div>
<div style="font:10pt arial"><b>To:</b> <a title="winpcap-users@winpcap.org" href="mailto:winpcap-users@winpcap.org" target="_blank">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" target="_blank">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>
</div></div><p>
</p><hr><div class="Ih2E3d">
<p></p>_______________________________________________<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>
</div><p></p></blockquote></div>
<br>_______________________________________________<br>
Winpcap-users mailing list<br>
<a href="mailto:Winpcap-users@winpcap.org">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>
<br></blockquote></div><br></div></div>