{
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. */
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);
#define NEIGHBOR_FULL 7
timer *inactim; /* Inactivity timer */
byte ms; /* Master/slave */
+#define NEIGHBOR_SLAVE 0
+#define NEIGHBOR_MASTER 1
u32 dds; /* DD Sequence number being sentg */
u32 ddr; /* last Dat Des packet */
u32 rid; /* Router ID */
byte options; /* Options */
u32 dr; /* Neigbour's idea of DR */
u32 bdr; /* Neigbour's idea of BDR */
+ u8 adj; /* built adjacency? */
};
#endif /* _BIRD_OSPF_H_ */