<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">I tried both. I mean, in the beginning, I used one handle for both reception and transmission. Then I thought that may cause the collision, so I tried to create two handles for each NIC, one for reception, one for transmission. But I got the same result.<br><br>Thank you very much for your help.<br><br>Emma<br><br>--- On <b>Thu, 6/25/09, Gianluca Varenni <i><gianluca.varenni@cacetech.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Gianluca Varenni <gianluca.varenni@cacetech.com><br>Subject: Re: [Winpcap-users] Two way traffic collision?<br>To: winpcap-users@winpcap.org<br>Date: Thursday, June 25, 2009, 3:33 PM<br><br><div id="yiv1208552534">
<style></style>
<div><font size="2">Are you using the same pcap_t handle for both reception and
transmission?</font></div>
<div><font size="2"></font> </div>
<div><font size="2">Have a nice day</font></div>
<div><font size="2">GV</font></div>
<blockquote style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">----- Original Message ----- </div>
<div style="background: rgb(228, 228, 228) none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;"><b>From:</b>
<a rel="nofollow" title="jhm121@yahoo.com" ymailto="mailto:jhm121@yahoo.com" target="_blank" href="/mc/compose?to=jhm121@yahoo.com">Emma Jin</a> </div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;"><b>To:</b> <a rel="nofollow" title="winpcap-users@winpcap.org" ymailto="mailto:winpcap-users@winpcap.org" target="_blank" href="/mc/compose?to=winpcap-users@winpcap.org">winpcap-users@winpcap.org</a> </div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;"><b>Sent:</b> Thursday, June 25, 2009 10:14
AM</div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;"><b>Subject:</b> [Winpcap-users] Two way traffic
collision?</div>
<div><br></div>
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td valign="top">
<div>Hi, </div>
<div> </div>
<div>I ran into problem again and am coming to ask for help
again:)</div>
<div> </div>
<div>I have three PCs, let's say A, B, and C. A and C both connect to B
directly (B has multiple NICs). </div>
<div> </div>
<div>I am running an application on B. The application starts one
thread for each NIC connecting to A and C. The thread listens for
incoming packets and replaces the source and destination MAC address and
sends the packets out through the other NIC (so the packets from A will
be forwarded to C, and the packets from C will be forwarded to A).
</div>
<div> </div>
<div>I tested the application with video. I sent the video (with
bandwidth of 2M) from A to C. No problem. I sent five videos (total
bandwidth of about 10M) from A to C. No problem. I tried the other way
from C to A. No problem either. But whenever I tried two way traffic
(both from A to C and from C to A), even if there is only one video each
way, the packets got lost. </div>
<div> </div>
<div>It seems the two way traffic are affecting each other. Is there
anything special I need to do to resolve this problem? I am using <font size="2">pcap_next_ex and </font><font size="2">pcap_sendpacket to receive
and send the packets. All of my PCs are running XP.</font></div>
<div><font size="2"></font> </div>
<div><font size="2">Thank you,</font></div>
<div><font size="2"></font> </div>
<div><font size="2">Emma</font></div><font size="2"></font></td></tr></tbody></table><br>
<p>
</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></div><br>-----Inline Attachment Follows-----<br><br><div class="plainMail">_______________________________________________<br>Winpcap-users mailing list<br><a ymailto="mailto:Winpcap-users@winpcap.org" href="/mc/compose?to=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></div></blockquote></td></tr></table><br>