1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

Preparing to send DD packets.

This commit is contained in:
Ondrej Filip
1999-08-24 14:42:51 +00:00
parent 2981814066
commit e3121112ab
2 changed files with 11 additions and 1 deletions

View File

@@ -44,7 +44,13 @@ tryadj(struct ospf_neighbor *n, struct proto *p)
{
DBG("%s: Going to build adjacency.\n", p->name);
neigh_chstate(n,NEIGHBOR_EXSTART);
/* FIXME Go on */
if(n->adj==0) /* First time adjacency */
{
n->dds=random_u32;
}
n->dds++;
n->ms=NEIGHBOR_MASTER;
/* FIXME Go on, start to send DD packets */
}
/* Neighbor is inactive for a long time. Remove it. */
@@ -284,6 +290,7 @@ ospf_hello_rx(struct ospf_hello_packet *ps, struct proto *p,
n->priority=ps->priority;
n->options=ps->options;
n->ifa=ifa;
n->adj=0;
neigh_chstate(n,NEIGHBOR_INIT);
}
tm_start(n->inactim,ifa->deadc*ifa->helloint);