summaryrefslogtreecommitdiffstats
path: root/proto/ospf/lsalib.c
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2004-06-06 18:00:09 +0200
committerOndrej Filip <feela@network.cz>2004-06-06 18:00:09 +0200
commitb8f17cf1923ff5894b6689479f7fb7d008b8ce44 (patch)
tree1292dfde38521bcc67a623054f386e4d1b927796 /proto/ospf/lsalib.c
parentd631698ec8a63270f7ca9bc069508d1313a08f92 (diff)
downloadbird-b8f17cf1923ff5894b6689479f7fb7d008b8ce44.tar
bird-b8f17cf1923ff5894b6689479f7fb7d008b8ce44.zip
Small cleanup, indentation and preparation for multiple areas routing table calculation.
Diffstat (limited to 'proto/ospf/lsalib.c')
-rw-r--r--proto/ospf/lsalib.c7
1 files changed, 4 insertions, 3 deletions
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;