Update
diff --git a/nlsr.c b/nlsr.c
index b9a1557..072e3c7 100644
--- a/nlsr.c
+++ b/nlsr.c
@@ -160,7 +160,8 @@
memcpy(nbr->neighbor->name,rtr_name,strlen(rtr_name)+1);
nbr->neighbor->length=strlen(rtr_name)+1;
nbr->face=face_id;
- nbr->status=0;
+ nbr->status=0;
+ nbr->lsdb_version=0;
add_adjacent_to_adl(nbr);
print_adjacent_from_adl();
@@ -305,6 +306,7 @@
hnbr->neighbor->length=nbr->neighbor->length;
hnbr->face=nbr->face;
hnbr->status=nbr->status;
+ hnbr->lsdb_version=nbr->lsdb_version;
hashtb_end(e);
@@ -329,7 +331,7 @@
for(i=0;i<adl_element;i++)
{
nbr=e->data;
- printf("Neighbor: %s Length: %d Face: %d Status: %d\n",nbr->neighbor->name,nbr->neighbor->length,nbr->face, nbr->status);
+ printf("Neighbor: %s Length: %d Face: %d Status: %d Lsdb Version: %d\n",nbr->neighbor->name,nbr->neighbor->length,nbr->face, nbr->status, nbr->lsdb_version);
hashtb_next(e);
}
diff --git a/nlsr.h b/nlsr.h
index 67ffe39..8576165 100644
--- a/nlsr.h
+++ b/nlsr.h
@@ -15,6 +15,7 @@
struct name_prefix *neighbor;
int face;
int status;
+ int lsdb_version;
};
struct nlsr