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