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="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
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>