+2004-09-13 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
+
+ * ospf6_intra.c, ospf6_route.[ch]: try to fix assertion failure
+ in brouter's route_remove
+ * ospf6d.h: version 0.9.7o
+
+2004-09-12 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
+
+ * ospf6_route.c: route_count_assert bug fix
+ * ospf6d.h: version 0.9.7n
+
2004-09-03 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
* ospf6_area.c, ospf6_route.c, ospf6_top.c, ospf6d.c:
summary->path.origin.id =
ospf6_new_ls_id (summary->path.origin.type,
summary->path.origin.adv_router, area->lsdb);
- ospf6_route_add (summary, summary_table);
+ summary = ospf6_route_add (summary, summary_table);
}
else
{
if (lsentry->path.area_id != oa->area_id)
continue;
+ if (CHECK_FLAG (lsentry->flag, OSPF6_ROUTE_WAS_REMOVED))
+ continue;
+
if (CHECK_FLAG (lsentry->flag, OSPF6_ROUTE_REMOVE) &&
CHECK_FLAG (lsentry->flag, OSPF6_ROUTE_ADD))
{
ospf6_route_delete (route);
SET_FLAG (old->flag, OSPF6_ROUTE_ADD);
ospf6_route_count_assert (table);
+
return old;
}
ospf6_route_lock (route);
SET_FLAG (route->flag, OSPF6_ROUTE_CHANGE);
+ ospf6_route_count_assert (table);
+
if (table->hook_add)
(*table->hook_add) (route);
- ospf6_route_count_assert (table);
return route;
}
ospf6_route_lock (route);
table->count++;
+ ospf6_route_count_assert (table);
SET_FLAG (route->flag, OSPF6_ROUTE_ADD);
if (table->hook_add)
(*table->hook_add) (route);
- ospf6_route_count_assert (table);
return route;
}
}
table->count++;
+ ospf6_route_count_assert (table);
SET_FLAG (route->flag, OSPF6_ROUTE_ADD);
if (table->hook_add)
(*table->hook_add) (route);
- ospf6_route_count_assert (table);
return route;
}
node->info = NULL; /* should unlock route_node here ? */
}
+ table->count--;
+ ospf6_route_count_assert (table);
+
+ SET_FLAG (route->flag, OSPF6_ROUTE_WAS_REMOVED);
+
if (table->hook_remove)
(*table->hook_remove) (route);
ospf6_route_unlock (route);
- table->count--;
-
- ospf6_route_count_assert (table);
}
struct ospf6_route *
#define OSPF6_ROUTE_BEST 0x08
#define OSPF6_ROUTE_ACTIVE_SUMMARY 0x10
#define OSPF6_ROUTE_DO_NOT_ADVERTISE 0x20
+#define OSPF6_ROUTE_WAS_REMOVED 0x40
struct ospf6_route_table
{
#ifndef OSPF6D_H
#define OSPF6D_H
-#define OSPF6_DAEMON_VERSION "0.9.7m"
+#define OSPF6_DAEMON_VERSION "0.9.7o"
/* global variables */
extern int errno;