diff options
author | hasso <hasso> | 2004-08-25 09:10:37 +0000 |
---|---|---|
committer | hasso <hasso> | 2004-08-25 09:10:37 +0000 |
commit | ccb59b11047c71430eb55ed58eda94865bab20c8 (patch) | |
tree | c135d58534331ff4fd04223f512d317dbd4c8ed8 /ospf6d/ospf6_route.c | |
parent | 3e0b3a56217dab13b26e7f7fd634e7450dde55e2 (diff) |
SVN revisions 935-940 merge from Zebra CVS.
Diffstat (limited to 'ospf6d/ospf6_route.c')
-rw-r--r-- | ospf6d/ospf6_route.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ospf6d/ospf6_route.c b/ospf6d/ospf6_route.c index 1202a3ae..dae92226 100644 --- a/ospf6d/ospf6_route.c +++ b/ospf6d/ospf6_route.c @@ -201,10 +201,25 @@ static void _route_count_assert (struct ospf6_route_table *table) { struct ospf6_route *debug; + char buf[64]; int num = 0; for (debug = ospf6_route_head (table); debug; debug = ospf6_route_next (debug)) num++; + + if (num == table->count) + return; + + zlog_info ("PANIC !! table[%p]->count = %d, real = %d", + table, table->count, num); + for (debug = ospf6_route_head (table); debug; + debug = ospf6_route_next (debug)) + { + prefix2str (&debug->prefix, buf, sizeof (buf)); + zlog_info ("%p %p %s", debug->prev, debug->next, buf); + } + zlog_info ("DUMP END"); + assert (num == table->count); } #define ospf6_route_count_assert(t) (_route_count_assert (t)) |