Bug 906

Summary: In NSC TCP socket, when a fork occurs, txbuffersize is not copied
Product: ns-3 Reporter: Antti Mäkelä <antti.makela>
Component: internetAssignee: ns-bugs <ns-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: tomh
Priority: P5    
Version: pre-release   
Hardware: All   
OS: All   

Description Antti Mäkelä 2010-05-04 06:22:39 EDT
When a NSC TCP socket is in listening state and accepts a connection, during the for txbuffersize will be uninitialized in the new (forked) socket.

This eventually crashes at Assert on line 367 in GetTxAvailable, since it can be anything.

I added m_txBufferSize = sock.m_txBufferSize; to the copy constructor and problem seems to have gone away.
Comment 1 Tom Henderson 2010-05-29 19:49:23 EDT
changeset: 2b1bbc8d0c58