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

(-)a/src/aodv/model/aodv-routing-protocol.cc (-5 / +2 lines)
 Lines 135-141    Link Here 
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),
 Lines 149-158    Link Here 
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
 Lines 246-252    Link Here 
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 ())

Return to bug 1629