commit | 87cd0658b6efeb6f979a85044fe514f1e9f5af3a | [log] [tgz] |
---|---|---|
author | Yaogong Wang <ywang15@ncsu.edu> | Tue May 28 11:00:45 2013 -0400 |
committer | Alexander Afanasyev <alexander.afanasyev@ucla.edu> | Tue May 28 11:01:55 2013 -0700 |
tree | 775a93be9cd3921ba33a46559220411b306b4060 | |
parent | fdd454156f4e4692daa3b08cf60da5aa4d9a88e3 [diff] |
utils+apps: Fix a bug in ndn::RttEstimator In the constructor of ndn::RttEstimator, the code tries to set m_currentEstimatedRtt to m_initialEstimatedRtt using the ConstructSelf() technique. However, it doesn't take effect at this point since ndn::RttEstimator hasn't defined GetInstanceTypeId(). According to the manual (http://www.nsnam.org/docs/manual/html/attributes.html#initialization-order), "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". GetInstanceTypeId() was defined in the original RttEstimator but was somehow lost during the port to ndnSIM. closes #40
To successfully compile ndnSIM, it is necessary to use a custom branch of NS-3.
This branch can be cloned from https://github.com/cawka/ns-3-dev-ndnSIM
mkdir ndnSIM cd ndnSIM git clone git://github.com/cawka/ns-3-dev-ndnSIM.git ns-3 git clone git://github.com/cawka/pybindgen.git pybindgen git clone git://github.com/NDN-Routing/ndnSIM.git ns-3/src/ndnSIM
For more information, including downloading and compilation instruction, please refer to documentation in doc/ or on http://ndnsim.net