summaryrefslogtreecommitdiffstats
path: root/proto
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2002-03-04 16:54:39 +0100
committerOndrej Filip <feela@network.cz>2002-03-04 16:54:39 +0100
commite59e310e6435c6c72b585c6f4b5e6c9bbd006553 (patch)
treecd7ad9db873f9deb71d7b4eee855c41552009e8e /proto
parent025b0e856a85dcae755e97922febc190145ba89c (diff)
downloadbird-e59e310e6435c6c72b585c6f4b5e6c9bbd006553.tar
bird-e59e310e6435c6c72b585c6f4b5e6c9bbd006553.zip
Age LSA DB after LSA origination and before routing table calculation.
Diffstat (limited to 'proto')
-rw-r--r--proto/ospf/ospf.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/proto/ospf/ospf.c b/proto/ospf/ospf.c
index 7f48f01..12037c8 100644
--- a/proto/ospf/ospf.c
+++ b/proto/ospf/ospf.c
@@ -287,9 +287,6 @@ area_disp(timer *timer)
struct proto_ospf *po=oa->po;
struct ospf_iface *ifa;
- /* First of all try to age LSA DB */
- ospf_age(oa);
-
/* Now try to originage rt_lsa */
if(oa->origrt) originate_rt_lsa(oa);
@@ -299,6 +296,10 @@ area_disp(timer *timer)
if(ifa->orignet&&(ifa->an==oa->areaid)) originate_net_lsa(ifa);
}
+ /* Age LSA DB */
+ ospf_age(oa);
+
+ /* Calculate routing table */
if(oa->calcrt) ospf_rt_spfa(oa);
oa->calcrt=0;
}