diff options
author | Ondrej Filip <feela@network.cz> | 2000-05-31 16:06:33 +0200 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2000-05-31 16:06:33 +0200 |
commit | 70a383198ae08bed395f2a083c1bea5b37447705 (patch) | |
tree | 1a67b5135a041977a5928d5885f702718d28b21a /proto/ospf/iface.c | |
parent | aa185265f1cb310c053edb1a3bde28b4dab94964 (diff) | |
download | bird-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/iface.c')
-rw-r--r-- | proto/ospf/iface.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/proto/ospf/iface.c b/proto/ospf/iface.c index 6f0d134..6e370f8 100644 --- a/proto/ospf/iface.c +++ b/proto/ospf/iface.c @@ -130,7 +130,7 @@ ospf_int_sm(struct ospf_iface *ifa, int event) } addifa_rtlsa(ifa); } - originate_rt_lsa(ifa->oa,po); + schedule_rt_lsa(ifa->oa); break; case ISM_BACKS: case ISM_WAITF: @@ -144,22 +144,22 @@ ospf_int_sm(struct ospf_iface *ifa, int event) (ifa->state==OSPF_IS_BACKUP)) { bdr_election(ifa ,p); - originate_rt_lsa(ifa->oa,po); + schedule_rt_lsa(ifa->oa); } break; case ISM_DOWN: iface_chstate(ifa, OSPF_IS_DOWN); downint(ifa); - originate_rt_lsa(ifa->oa,po); + schedule_rt_lsa(ifa->oa); break; case ISM_LOOP: /* Useless? */ iface_chstate(ifa, OSPF_IS_LOOP); downint(ifa); - originate_rt_lsa(ifa->oa,po); + schedule_rt_lsa(ifa->oa); break; case ISM_UNLOOP: iface_chstate(ifa, OSPF_IS_DOWN); - originate_rt_lsa(ifa->oa,po); + schedule_rt_lsa(ifa->oa); break; default: die("%s: ISM - Unknown event?",p->name); |