|
|
| 135 |
MaxQueueTime (Seconds (30)), |
135 |
MaxQueueTime (Seconds (30)), |
| 136 |
DestinationOnly (false), |
136 |
DestinationOnly (false), |
| 137 |
GratuitousReply (true), |
137 |
GratuitousReply (true), |
| 138 |
EnableHello (true), |
138 |
EnableHello (false), |
| 139 |
m_routingTable (DeletePeriod), |
139 |
m_routingTable (DeletePeriod), |
| 140 |
m_queue (MaxQueueLen, MaxQueueTime), |
140 |
m_queue (MaxQueueLen, MaxQueueTime), |
| 141 |
m_requestId (0), |
141 |
m_requestId (0), |
|
|
| 149 |
m_rreqRateLimitTimer (Timer::CANCEL_ON_DESTROY), |
149 |
m_rreqRateLimitTimer (Timer::CANCEL_ON_DESTROY), |
| 150 |
m_rerrRateLimitTimer (Timer::CANCEL_ON_DESTROY) |
150 |
m_rerrRateLimitTimer (Timer::CANCEL_ON_DESTROY) |
| 151 |
{ |
151 |
{ |
| 152 |
if (EnableHello) |
|
|
| 153 |
{ |
| 154 |
m_nb.SetCallback (MakeCallback (&RoutingProtocol::SendRerrWhenBreaksLinkToNextHop, this)); |
| 155 |
} |
| 156 |
} |
152 |
} |
| 157 |
|
153 |
|
| 158 |
TypeId |
154 |
TypeId |
|
|
| 246 |
&RoutingProtocol::GetDesinationOnlyFlag), |
242 |
&RoutingProtocol::GetDesinationOnlyFlag), |
| 247 |
MakeBooleanChecker ()) |
243 |
MakeBooleanChecker ()) |
| 248 |
.AddAttribute ("EnableHello", "Indicates whether a hello messages enable.", |
244 |
.AddAttribute ("EnableHello", "Indicates whether a hello messages enable.", |
| 249 |
BooleanValue (true), |
245 |
BooleanValue (false), |
| 250 |
MakeBooleanAccessor (&RoutingProtocol::SetHelloEnable, |
246 |
MakeBooleanAccessor (&RoutingProtocol::SetHelloEnable, |
| 251 |
&RoutingProtocol::GetHelloEnable), |
247 |
&RoutingProtocol::GetHelloEnable), |
| 252 |
MakeBooleanChecker ()) |
248 |
MakeBooleanChecker ()) |
|
|
| 315 |
NS_LOG_FUNCTION (this); |
311 |
NS_LOG_FUNCTION (this); |
| 316 |
if (EnableHello) |
312 |
if (EnableHello) |
| 317 |
{ |
313 |
{ |
|
|
314 |
m_nb.SetCallback (MakeCallback (&RoutingProtocol::SendRerrWhenBreaksLinkToNextHop, this)); |
| 318 |
m_nb.ScheduleTimer (); |
315 |
m_nb.ScheduleTimer (); |
| 319 |
} |
316 |
} |
| 320 |
m_rreqRateLimitTimer.SetFunction (&RoutingProtocol::RreqRateLimitTimerExpire, |
317 |
m_rreqRateLimitTimer.SetFunction (&RoutingProtocol::RreqRateLimitTimerExpire, |