Hi Amarnath,
 
At the place where this detection is applied...create a conditional check 
according to your expectation.
 
 
I think it'll work for you.
 
  

________________________________
 From: AmarNath Patra <amarnath.pa...@gmail.com>
To: ns-users@ISI.EDU 
Sent: Wednesday, 24 April 2013 6:35 PM
Subject: [ns] enabling-disabling hello on the fly in aodv
  


Hello everyone,

The hello process is disabled in aodv.cc. To enable it we just need to
comment out
#ifndef AODV_LINK_LAYER_DETECTION  (line number 63)
and
#endif // LINK LAYER DETECTION (line number 66) in aodv.cc.

I want to enable the hello process in the beginning. In the case of *local
repair,* disable the hello and enable it once the link is repaired.
Is this possible?

I used a flag, initialized it to true in the aodv constructor, unset it in
local_rt_repair(), set it back in recvReply(),  and checked its status in
HelloTimer::handle(Event*). This doesn't help.

Could anyone please suggest me how to go about it?

Thanks in advance.
amar

Reply via email to