summaryrefslogtreecommitdiffstats
path: root/proto/ospf/ospf.c
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>1999-05-24 23:17:16 +0200
committerOndrej Filip <feela@network.cz>1999-05-24 23:17:16 +0200
commitc76674f0e98d356ea235ea76fd55d71a3673b123 (patch)
treed70bbb5ee3857e3a26f4c5457c4598244257d8a6 /proto/ospf/ospf.c
parent65112dd270dbfa598c1f8a5074bf7224b9e1469c (diff)
downloadbird-c76674f0e98d356ea235ea76fd55d71a3673b123.tar
bird-c76674f0e98d356ea235ea76fd55d71a3673b123.zip
struct ospf_neigbor added. Neigbor state machine implementation can start.
Diffstat (limited to 'proto/ospf/ospf.c')
-rw-r--r--proto/ospf/ospf.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/proto/ospf/ospf.c b/proto/ospf/ospf.c
index ac2eef1..914adce 100644
--- a/proto/ospf/ospf.c
+++ b/proto/ospf/ospf.c
@@ -274,14 +274,6 @@ hello_timer_hook(timer *timer)
}
void
-add_hello_timer(struct ospf_iface *ifa)
-{
- struct proto *p;
- p=(struct proto *)(ifa->proto);
-
-}
-
-void
wait_timer_hook(timer *timer)
{
struct ospf_iface *ifa;
@@ -296,6 +288,7 @@ wait_timer_hook(timer *timer)
/*
* Wait time fired. Now we must change state
* to DR or DROTHER depending on priority
+ * FIXME: I can be also BDR
*/
if(ifa->priority!=0)
{
@@ -303,6 +296,7 @@ wait_timer_hook(timer *timer)
ifa->state=OSPF_IS_DR;
ifa->drip=ifa->iface->addr->ip;
+ ifa->drid=p->cf->global->router_id;
/* FIXME: Set ifa->drid */
}
else
@@ -343,7 +337,7 @@ ospf_add_timers(struct ospf_iface *ifa, pool *pool, int wait)
ifa->wait_timer->recurrent=0;
ifa->wait_timer->expires=0;
ifa->state=OSPF_IS_WAITING;
- tm_start(ifa->wait_timer,(wait!=0 ? wait : WAIT_D));
+ tm_start(ifa->wait_timer,(wait!=0 ? wait : WAIT_DMH*ifa->helloint));
DBG(p->name);
DBG(": Installing wait timer.\n");
}