summaryrefslogtreecommitdiff
path: root/proto/ospf/dbdes.c
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-06-07 13:19:48 +0000
committerOndrej Filip <feela@network.cz>2000-06-07 13:19:48 +0000
commit38203d789a872077ec174a63a448568725e4715f (patch)
treef4284367a0b7b24dfad0eeffa67b6e020198ba47 /proto/ospf/dbdes.c
parent0c69604c8d0c9618e6cc94c98da993439d90dde6 (diff)
Originate rt lsa before sending first dbdes.
Diffstat (limited to 'proto/ospf/dbdes.c')
-rw-r--r--proto/ospf/dbdes.c4
1 files changed, 4 insertions, 0 deletions
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)))
{