<!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.5726" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<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="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=jhm121@yahoo.com href="mailto:jhm121@yahoo.com">Emma Jin</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> Thursday, June 25, 2009 10:14
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Winpcap-users] Two way traffic
collision?</DIV>
<DIV><BR></DIV>
<TABLE cellSpacing=0 cellPadding=0 border=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</DIV></FONT></TD></TR></TBODY></TABLE><BR>
<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>