summaryrefslogtreecommitdiffstats
path: root/proto/ospf/neighbor.c
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-05-31 16:06:33 +0200
committerOndrej Filip <feela@network.cz>2000-05-31 16:06:33 +0200
commit70a383198ae08bed395f2a083c1bea5b37447705 (patch)
tree1a67b5135a041977a5928d5885f702718d28b21a /proto/ospf/neighbor.c
parentaa185265f1cb310c053edb1a3bde28b4dab94964 (diff)
downloadbird-70a383198ae08bed395f2a083c1bea5b37447705.tar
bird-70a383198ae08bed395f2a083c1bea5b37447705.zip
LSArt origination and routing table calculation is now not doing so
often. Instead of calculation I just schedule it latter.
Diffstat (limited to 'proto/ospf/neighbor.c')
-rw-r--r--proto/ospf/neighbor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/proto/ospf/neighbor.c b/proto/ospf/neighbor.c
index 3de4071..c4f457a 100644
--- a/proto/ospf/neighbor.c
+++ b/proto/ospf/neighbor.c
@@ -42,14 +42,14 @@ neigh_chstate(struct ospf_neighbor *n, u8 state)
if(oldstate==NEIGHBOR_FULL) /* Decrease number of adjacencies */
{
ifa->fadj--;
- originate_rt_lsa(ifa->oa,po);
+ schedule_rt_lsa(ifa->oa);
originate_net_lsa(ifa,po);
}
if(state==NEIGHBOR_FULL) /* Increase number of adjacencies */
{
ifa->fadj++;
- originate_rt_lsa(ifa->oa,po);
+ schedule_rt_lsa(ifa->oa);
originate_net_lsa(ifa,po);
}
if(oldstate>=NEIGHBOR_EXSTART && state<NEIGHBOR_EXSTART)