Index: src/internet/model/tcp-congestion-ops.cc |
=================================================================== |
--- a/src/internet/model/tcp-congestion-ops.cc |
+++ b/src/internet/model/tcp-congestion-ops.cc |
@@ -64,7 +64,7 @@ |
return tid; |
} |
-TcpNewReno::TcpNewReno (void) : TcpCongestionOps () |
+TcpNewReno::TcpNewReno () : TcpCongestionOps () |
{ |
NS_LOG_FUNCTION (this); |
} |
@@ -209,6 +209,14 @@ |
return std::max (2 * state->m_segmentSize, bytesInFlight / 2); |
} |
+void |
+TcpNewReno::ReduceCwnd (Ptr<TcpSocketState> state) |
+{ |
+ NS_LOG_FUNCTION (this << state ); |
+ |
+ state->m_cWnd = std::max ((uint32_t)state->m_cWnd/2, state->m_segmentSize); |
+} |
+ |
Ptr<TcpCongestionOps> |
TcpNewReno::Fork () |
{ |