Bugzilla – Bug 1187
Provide DELETE_PERIOD scaling factor K as an attribute
Last modified: 2017-02-25 19:43:07 EST
Provide DELETE_PERIOD scaling factor K as an attribute. The current DELETE_PERIOD of 15 may be excessive for several MANET simulations.
Agree with the proposal to add K. I noticed a possible problem with the current implementation: RoutingProtocol::RoutingProtocol () : ... DeletePeriod (Time (5 * std::max (ActiveRouteTimeout, HelloInterval))), ... m_routingTable (DeletePeriod), m_routingTable is initialized with the DeletePeriod provided by the above default initializer, not by the attribute value (attribute initialization is called after the constructor is called). I'm not sure the attribute DeletePeriod is ever used; can you check?
DeletePeriod is indeed used by the RoutingTable implementation. Changes uploaded as http://codereview.appspot.com/320720043 to use attributes to override constructor settings.