[Winpcap-users] Two way traffic collision?

Emma Jin jhm121 at yahoo.com
Thu Jun 25 23:00:19 PDT 2009


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.

Thank you very much for your help.

Emma

--- On Thu, 6/25/09, Gianluca Varenni <gianluca.varenni at cacetech.com> wrote:

From: Gianluca Varenni <gianluca.varenni at cacetech.com>
Subject: Re: [Winpcap-users] Two way traffic collision?
To: winpcap-users at winpcap.org
Date: Thursday, June 25, 2009, 3:33 PM



 
 

Are you using the same pcap_t handle for both reception and 
transmission?
 
Have a nice day
GV

  ----- Original Message ----- 
  From: 
  Emma Jin 
  To: winpcap-users at winpcap.org 
  Sent: Thursday, June 25, 2009 10:14 
  AM
  Subject: [Winpcap-users] Two way traffic 
  collision?
  

  
    
    
      
        Hi, 
         
        I ran into problem again and am coming to ask for help 
again:)
         
        I have three PCs, let's say A, B, and C. A and C both connect to B 
        directly (B has multiple NICs). 
         
        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). 

         
        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. 
         
        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 pcap_next_ex and pcap_sendpacket to receive 
        and send the packets. All of my PCs are running XP.
         
        Thank you,
         
        Emma

  
  

  _______________________________________________
Winpcap-users 
  mailing 
  list
Winpcap-users at winpcap.org
https://www.winpcap.org/mailman/listinfo/winpcap-users

-----Inline Attachment Follows-----

_______________________________________________
Winpcap-users mailing list
Winpcap-users at winpcap.org
https://www.winpcap.org/mailman/listinfo/winpcap-users



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winpcap.org/pipermail/winpcap-users/attachments/20090625/fcc4c1e1/attachment.htm 


More information about the Winpcap-users mailing list