summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-06-07 15:19:48 +0200
committerOndrej Filip <feela@network.cz>2000-06-07 15:19:48 +0200
commit38203d789a872077ec174a63a448568725e4715f (patch)
treef4284367a0b7b24dfad0eeffa67b6e020198ba47
parent0c69604c8d0c9618e6cc94c98da993439d90dde6 (diff)
downloadbird-38203d789a872077ec174a63a448568725e4715f.tar
bird-38203d789a872077ec174a63a448568725e4715f.zip
Originate rt lsa before sending first dbdes.
-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 0418d56..5272732 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)))
{