Link Recovery Done
diff --git a/nlsr_adl.c b/nlsr_adl.c
index 1184cb6..913e0c0 100644
--- a/nlsr_adl.c
+++ b/nlsr_adl.c
@@ -1,6 +1,7 @@
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
+#include<math.h>
#include <unistd.h>
#include <getopt.h>
#include <sys/time.h>
@@ -548,7 +549,7 @@
if (res == HT_OLD_ENTRY)
{
nnbr=e->data;
- time=nnbr->lsdb_random_time_component * nnbr->lsdb_interest_timed_out;
+ time=nnbr->lsdb_random_time_component * (int)pow(-1,nnbr->lsdb_interest_timed_out+1);
}
else if(res == HT_NEW_ENTRY)
{
diff --git a/nlsr_ndn.c b/nlsr_ndn.c
index 44dcf58..475e4b4 100644
--- a/nlsr_ndn.c
+++ b/nlsr_ndn.c
@@ -962,6 +962,8 @@
nlsr_unlock();
+ nlsr->event = ccn_schedule_event(nlsr->sched, 60000000, &send_info_interest, NULL, 0);
+
return 0;
}