internet: (fixes #1113) fixes integer overflow on first Hystart event

This commit is contained in:
Tommaso Pecorella
2024-07-27 00:31:17 -05:00
committed by Tommaso Pecorella
parent 47ec2c5bfe
commit 426e6a4ba9
2 changed files with 7 additions and 0 deletions

View File

@@ -173,6 +173,12 @@ TcpCubic::GetName() const
return "TcpCubic";
}
void
TcpCubic::Init(Ptr<TcpSocketState> tcb)
{
HystartReset(tcb);
}
void
TcpCubic::HystartReset(Ptr<const TcpSocketState> tcb)
{

View File

@@ -101,6 +101,7 @@ class TcpCubic : public TcpCongestionOps
const TcpSocketState::TcpCongState_t newState) override;
Ptr<TcpCongestionOps> Fork() override;
void Init(Ptr<TcpSocketState> tcb) override;
private:
bool m_fastConvergence; //!< Enable or disable fast convergence algorithm