Bug 1601 RttEstimator doesn't set m_currentEstimatedRtt fix

This commit is contained in:
Tommaso Pecorella
2013-04-19 12:18:00 -04:00
parent 0ea5de1d3d
commit f195a9749f
4 changed files with 21 additions and 0 deletions

View File

@@ -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

View File

@@ -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
********************

View File

@@ -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);

View File

@@ -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.