[Ns-bugs] [Bug 198] New: TcpSocketImpl missing attributes initiliazation in copy constructor

bugzilla-daemon@nsnam-www.ece.gatech.edu bugzilla-daemon at nsnam-www.ece.gatech.edu
Sat May 31 03:12:38 PDT 2008


http://www.nsnam.org/bugzilla/show_bug.cgi?id=198

           Summary: TcpSocketImpl missing attributes initiliazation in copy
                    constructor
           Product: ns-3
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: internet-node
        AssignedTo: ns-bugs at isi.edu
        ReportedBy: vincent at clarinet.u-strasbg.fr


Hello,

I made a little tcp-echo application (adapted from udp-echo) to test TCP. But I
face a problem. The TcpSocketImpl::GetTxAvailable() on the echo server always
returns 0, the server never echoed anything and the TCP stack just send an ACK.

After inverstigation I noticed in copy constructor (
TcpSocketImpl::TcpSocketImpl(const TcpSocketImpl& sock) ) that
the two attributes m_sndBufSize and m_rcvBufSize are not copied.

In the patch, I set this two attributes in copy constructor and now the server
echoes the client's packets. 

I think it is normal that the echo-response does not set the ACK flags as
NS-3's TCP stack does not implement the delayed acknowledgement (which is why
the server send an ACK after the echo response).


-- 
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the Ns-bugs mailing list