Update in nlsr
diff --git a/nlsr.c b/nlsr.c
index 76bbb8a..ad7afc0 100644
--- a/nlsr.c
+++ b/nlsr.c
@@ -203,7 +203,7 @@
nlsr=(struct nlsr *)malloc(sizeof(struct nlsr));
nlsr->adl=hashtb_create(200, ¶m_adl);
- nlsr->npl = hashtb_create(200, ¶m_npl);
+ nlsr->npl = hashtb_create(sizeof(struct name_prefix), ¶m_npl);
nlsr->in_interest.p = &incoming_interest;
nlsr->in_content.p = &incoming_content;
nlsr->is_synch_init=1;
diff --git a/nlsr.h b/nlsr.h
index 2b15b8b..251cf23 100644
--- a/nlsr.h
+++ b/nlsr.h
@@ -4,6 +4,12 @@
#define LSA_ADJ_TYPE 1
#define LSA_NAME_TYPE 2
+struct name_prefix
+{
+ char *name;
+ int length;
+};
+
struct nlsr
{