internet: (fixes #1113) fixes integer overflow on first Hystart event
This commit is contained in:
committed by
Tommaso Pecorella
parent
47ec2c5bfe
commit
426e6a4ba9
@@ -173,6 +173,12 @@ TcpCubic::GetName() const
|
||||
return "TcpCubic";
|
||||
}
|
||||
|
||||
void
|
||||
TcpCubic::Init(Ptr<TcpSocketState> tcb)
|
||||
{
|
||||
HystartReset(tcb);
|
||||
}
|
||||
|
||||
void
|
||||
TcpCubic::HystartReset(Ptr<const TcpSocketState> tcb)
|
||||
{
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user