Commit e02652a7 authored by Ondřej Filip's avatar Ondřej Filip

Bugfix in RT calculation.

parent 6721e286
......@@ -44,12 +44,13 @@ ospf_age(struct ospf_area *oa)
struct proto_ospf *po = (struct proto_ospf *) p;
struct top_hash_entry *en, *nxt;
int flush = can_flush_lsa(oa);
int cleanup = (oa->rt && (oa->rt->dist != LSINFINITY));
OSPF_TRACE(D_EVENTS, "Running ospf_age");
WALK_SLIST_DELSAFE(en, nxt, oa->lsal)
if (oa->rt && (oa->rt->dist != LSINFINITY))
if (cleanup)
en->color = OUTSPF;
en->dist = LSINFINITY;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment