Update
diff --git a/nlsr_adl.c b/nlsr_adl.c
index 13d197a..b39836a 100644
--- a/nlsr_adl.c
+++ b/nlsr_adl.c
@@ -116,15 +116,18 @@
printf("update_adjacent_status_to_adl called \n");
int res;
+ char *name=ccn_charbuf_as_string(nbr);
struct ndn_neighbor *nnbr;
struct hashtb_enumerator ee;
struct hashtb_enumerator *e = ⅇ
hashtb_start(nlsr->adl, e);
- res = hashtb_seek(e, nbr->buf, nbr->length, 0);
+ //res = hashtb_seek(e, nbr->buf, nbr->length, 0);
+ res = hashtb_seek(e, name,strlen(name) , 0);
- printf("Nbr: %s Length:%d\n",nbr->buf, (int)nbr->length);
+ //printf("Nbr: %s Length:%d\n",nbr->buf, (int)nbr->length);
+ printf("Nbr: %s Length: %d\n",name, (int) strlen(name));
assert( res == HT_OLD_ENTRY);
diff --git a/nlsr_ndn.c b/nlsr_ndn.c
index 65c27b6..ab43697 100644
--- a/nlsr_ndn.c
+++ b/nlsr_ndn.c
@@ -261,7 +261,7 @@
ccn_charbuf_append_string(nbr,(const char *)comp_ptr1);
}
- //ccn_charbuf_append_string(nbr,"\0");
+ ccn_charbuf_append_string(nbr,"\0");
printf("Interest Timed out for Neighbor: %s\n",ccn_charbuf_as_string(nbr));
update_adjacent_status_to_adl(nbr,1);