From b8f17cf1923ff5894b6689479f7fb7d008b8ce44 Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Sun, 6 Jun 2004 16:00:09 +0000 Subject: Small cleanup, indentation and preparation for multiple areas routing table calculation. --- proto/ospf/lsalib.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'proto/ospf/lsalib.c') diff --git a/proto/ospf/lsalib.c b/proto/ospf/lsalib.c index d78e30a..80649f5 100644 --- a/proto/ospf/lsalib.c +++ b/proto/ospf/lsalib.c @@ -49,7 +49,7 @@ ospf_age(struct ospf_area *oa) WALK_SLIST_DELSAFE(en, nxt, oa->lsal) { - if (oa->calcrt) + if (po->calcrt) { en->color = OUTSPF; en->dist = LSINFINITY; @@ -82,7 +82,7 @@ ospf_age(struct ospf_area *oa) if (flush) { flush_lsa(en, oa); - schedule_rtcalc(oa); + schedule_rtcalc(po); } else en->lsa.age = LSA_MAXAGE; @@ -438,6 +438,7 @@ lsa_install_new(struct ospf_lsa_header *lsa, void *body, struct ospf_area *oa) int change = 0; unsigned i; struct top_hash_entry *en; + struct proto_ospf *po = oa->po; if ((en = ospf_hash_find_header(oa->gr, lsa)) == NULL) { @@ -477,7 +478,7 @@ lsa_install_new(struct ospf_lsa_header *lsa, void *body, struct ospf_area *oa) if (change) { - schedule_rtcalc(oa); + schedule_rtcalc(po); } return en; -- cgit v1.2.3