|
|
| 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)); |
152 |
m_nb.SetCallback (MakeCallback (&RoutingProtocol::SendRerrWhenBreaksLinkToNextHop, this)); |
| 155 |
} |
|
|
| 156 |
} |
153 |
} |
| 157 |
|
154 |
|
| 158 |
TypeId |
155 |
TypeId |
|
|
| 246 |
&RoutingProtocol::GetDesinationOnlyFlag), |
243 |
&RoutingProtocol::GetDesinationOnlyFlag), |
| 247 |
MakeBooleanChecker ()) |
244 |
MakeBooleanChecker ()) |
| 248 |
.AddAttribute ("EnableHello", "Indicates whether a hello messages enable.", |
245 |
.AddAttribute ("EnableHello", "Indicates whether a hello messages enable.", |
| 249 |
BooleanValue (true), |
246 |
BooleanValue (false), |
| 250 |
MakeBooleanAccessor (&RoutingProtocol::SetHelloEnable, |
247 |
MakeBooleanAccessor (&RoutingProtocol::SetHelloEnable, |
| 251 |
&RoutingProtocol::GetHelloEnable), |
248 |
&RoutingProtocol::GetHelloEnable), |
| 252 |
MakeBooleanChecker ()) |
249 |
MakeBooleanChecker ()) |