From 6452df092bf6b694ea62a0423ac242f10ab997f9 Mon Sep 17 00:00:00 2001 From: hasso Date: Sun, 15 Aug 2004 05:52:07 +0000 Subject: SVN revisions 916-920 from Zebra. ABR support is almost done. --- ospf6d/ospf6_lsdb.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ospf6d/ospf6_lsdb.c') diff --git a/ospf6d/ospf6_lsdb.c b/ospf6d/ospf6_lsdb.c index 5c132caa..9b37406d 100644 --- a/ospf6d/ospf6_lsdb.c +++ b/ospf6d/ospf6_lsdb.c @@ -34,7 +34,7 @@ #include "ospf6d.h" struct ospf6_lsdb * -ospf6_lsdb_create () +ospf6_lsdb_create (void *data) { struct ospf6_lsdb *lsdb; @@ -46,6 +46,7 @@ ospf6_lsdb_create () } memset (lsdb, 0, sizeof (struct ospf6_lsdb)); + lsdb->data = data; lsdb->table = route_table_init (); return lsdb; } @@ -228,6 +229,7 @@ ospf6_lsdb_remove (struct ospf6_lsa *lsa, struct ospf6_lsdb *lsdb) ospf6_lsa_unlock (lsa); route_unlock_node (node); + ospf6_lsdb_count_assert (lsdb); } @@ -475,7 +477,7 @@ ospf6_new_ls_id (u_int16_t type, u_int32_t adv_router, if (ntohl (lsa->header->id) < id) continue; if (ntohl (lsa->header->id) > id) - return ((u_int32_t) htonl (id)); + break; id++; } -- cgit v1.2.1