From 38203d789a872077ec174a63a448568725e4715f Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Wed, 7 Jun 2000 13:19:48 +0000 Subject: [PATCH] Originate rt lsa before sending first dbdes. --- proto/ospf/dbdes.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/proto/ospf/dbdes.c b/proto/ospf/dbdes.c index 0418d563..52727320 100644 --- a/proto/ospf/dbdes.c +++ b/proto/ospf/dbdes.c @@ -14,6 +14,7 @@ ospf_dbdes_tx(struct ospf_neighbor *n) struct ospf_dbdes_packet *pkt; struct ospf_packet *op; struct ospf_iface *ifa=n->ifa; + struct ospf_area *oa=ifa->oa; u16 length; struct proto *p; u16 i,j; @@ -43,6 +44,9 @@ ospf_dbdes_tx(struct ospf_neighbor *n) case NEIGHBOR_EXCHANGE: n->myimms.bit.i=0; + if(oa->rt==NULL) originate_rt_lsa(oa); + oa->origrt=0; + if(((n->myimms.bit.ms) && (n->dds==n->ddr+1)) || ((!(n->myimms.bit.ms)) && (n->dds==n->ddr))) {