View | Details | Raw Unified | Return to bug 1982
Collapse All | Expand All

(-)a/src/mesh/model/dot11s/hwmp-protocol.cc (-3 / +2 lines)
 Lines 209-215    Link Here 
209
  m_coefficient->SetAttribute ("Max", DoubleValue (m_randomStart.GetSeconds ()));
209
  m_coefficient->SetAttribute ("Max", DoubleValue (m_randomStart.GetSeconds ()));
210
  if (m_isRoot)
210
  if (m_isRoot)
211
    {
211
    {
212
      SetRoot ();
212
      Time randomStart = Seconds (m_coefficient->GetValue ());
213
      m_proactivePreqTimer = Simulator::Schedule (randomStart, &HwmpProtocol::SendProactivePreq, this);
213
    }
214
    }
214
}
215
}
215
216
 Lines 1026-1033    Link Here 
1026
void
1027
void
1027
HwmpProtocol::SetRoot ()
1028
HwmpProtocol::SetRoot ()
1028
{
1029
{
1029
  Time randomStart = Seconds (m_coefficient->GetValue ());
1030
  m_proactivePreqTimer = Simulator::Schedule (randomStart, &HwmpProtocol::SendProactivePreq, this);
1031
  NS_LOG_DEBUG ("ROOT IS: " << m_address);
1030
  NS_LOG_DEBUG ("ROOT IS: " << m_address);
1032
  m_isRoot = true;
1031
  m_isRoot = true;
1033
}
1032
}

Return to bug 1982