diff --git a/src/internet/model/tcp-newreno.cc b/src/internet/model/tcp-newreno.cc index c750424d2..d7eb61e7c 100644 --- a/src/internet/model/tcp-newreno.cc +++ b/src/internet/model/tcp-newreno.cc @@ -55,7 +55,10 @@ TcpNewReno::GetTypeId (void) return tid; } -TcpNewReno::TcpNewReno (void) : m_inFastRec (false) +TcpNewReno::TcpNewReno (void) + : m_retxThresh (3), // mute valgrind, actual value set by the attribute system + m_inFastRec (false), + m_limitedTx (false) // mute valgrind, actual value set by the attribute system { NS_LOG_FUNCTION (this); } @@ -65,7 +68,9 @@ TcpNewReno::TcpNewReno (const TcpNewReno& sock) m_cWnd (sock.m_cWnd), m_ssThresh (sock.m_ssThresh), m_initialCWnd (sock.m_initialCWnd), - m_inFastRec (false) + m_retxThresh (sock.m_retxThresh), + m_inFastRec (false), + m_limitedTx (sock.m_limitedTx) { NS_LOG_FUNCTION (this); NS_LOG_LOGIC ("Invoked the copy constructor"); diff --git a/src/internet/model/tcp-reno.cc b/src/internet/model/tcp-reno.cc index 2104900e5..7fb55f724 100644 --- a/src/internet/model/tcp-reno.cc +++ b/src/internet/model/tcp-reno.cc @@ -51,7 +51,7 @@ TcpReno::GetTypeId (void) return tid; } -TcpReno::TcpReno (void) : m_inFastRec (false) +TcpReno::TcpReno (void) : m_retxThresh (3), m_inFastRec (false) { NS_LOG_FUNCTION (this); } @@ -61,6 +61,7 @@ TcpReno::TcpReno (const TcpReno& sock) m_cWnd (sock.m_cWnd), m_ssThresh (sock.m_ssThresh), m_initialCWnd (sock.m_initialCWnd), + m_retxThresh (sock.m_retxThresh), m_inFastRec (false) { NS_LOG_FUNCTION (this); diff --git a/src/internet/model/tcp-tahoe.cc b/src/internet/model/tcp-tahoe.cc index 73dd58fe7..59d6c282b 100644 --- a/src/internet/model/tcp-tahoe.cc +++ b/src/internet/model/tcp-tahoe.cc @@ -51,7 +51,7 @@ TcpTahoe::GetTypeId (void) return tid; } -TcpTahoe::TcpTahoe (void) : m_initialCWnd (0) +TcpTahoe::TcpTahoe (void) : m_initialCWnd (1), m_retxThresh (3) { NS_LOG_FUNCTION (this); } @@ -60,7 +60,8 @@ TcpTahoe::TcpTahoe (const TcpTahoe& sock) : TcpSocketBase (sock), m_cWnd (sock.m_cWnd), m_ssThresh (sock.m_ssThresh), - m_initialCWnd (sock.m_initialCWnd) + m_initialCWnd (sock.m_initialCWnd), + m_retxThresh (sock.m_retxThresh) { NS_LOG_FUNCTION (this); NS_LOG_LOGIC ("Invoked the copy constructor");