Bug 1601 RttEstimator doesn't set m_currentEstimatedRtt fix
This commit is contained in:
@@ -36,6 +36,7 @@ Bugs fixed
|
||||
- Bug 1582 - IPv6 raw socket return value is not like Linux socket
|
||||
- bug 1585 - Length field of A-MSDU subframe header endianness
|
||||
- Bug 1409 - Add an attribute "SystemId" to configure the ID for MPI
|
||||
- Bug 1601 - RttEstimator doesn't set the m_currentEstimatedRtt to m_initialEstimatedRtt on creation
|
||||
- Bug 1612 - pyviz (visualizer) will not be installed
|
||||
- Bug 1623 - pybindgen rev809 is not able to build after Ubuntu 1210
|
||||
|
||||
|
||||
@@ -492,6 +492,10 @@ follows:::
|
||||
// continue on with constructor.
|
||||
}
|
||||
|
||||
Beware that the object and all its derived classes must also implement a
|
||||
``virtual TypeId GetInstanceTypeId (void) const;`` method. Otherwise the
|
||||
``ObjectBase::ConstructSelf ()`` will not be able to read the attributes.
|
||||
|
||||
Extending attributes
|
||||
********************
|
||||
|
||||
|
||||
@@ -134,6 +134,12 @@ RttEstimator::~RttEstimator ()
|
||||
NS_LOG_FUNCTION (this);
|
||||
}
|
||||
|
||||
TypeId
|
||||
RttEstimator::GetInstanceTypeId (void) const
|
||||
{
|
||||
return GetTypeId ();
|
||||
}
|
||||
|
||||
void RttEstimator::SentSeq (SequenceNumber32 seq, uint32_t size)
|
||||
{
|
||||
NS_LOG_FUNCTION (this << seq << size);
|
||||
@@ -254,6 +260,12 @@ RttMeanDeviation::RttMeanDeviation (const RttMeanDeviation& c)
|
||||
NS_LOG_FUNCTION (this);
|
||||
}
|
||||
|
||||
TypeId
|
||||
RttMeanDeviation::GetInstanceTypeId (void) const
|
||||
{
|
||||
return GetTypeId ();
|
||||
}
|
||||
|
||||
void RttMeanDeviation::Measurement (Time m)
|
||||
{
|
||||
NS_LOG_FUNCTION (this << m);
|
||||
|
||||
@@ -64,6 +64,8 @@ public:
|
||||
|
||||
virtual ~RttEstimator();
|
||||
|
||||
virtual TypeId GetInstanceTypeId (void) const;
|
||||
|
||||
/**
|
||||
* \brief Note that a particular sequence has been sent
|
||||
* \param seq the packet sequence number.
|
||||
@@ -167,6 +169,8 @@ public:
|
||||
|
||||
RttMeanDeviation (const RttMeanDeviation&);
|
||||
|
||||
virtual TypeId GetInstanceTypeId (void) const;
|
||||
|
||||
/**
|
||||
* \brief Add a new measurement to the estimator.
|
||||
* \param measure the new RTT measure.
|
||||
|
||||
Reference in New Issue
Block a user