summaryrefslogtreecommitdiffstats
path: root/proto/ospf
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-06-08 21:02:31 +0200
committerOndrej Filip <feela@network.cz>2000-06-08 21:02:31 +0200
commit054a352475437d924e473c95b5d3ad01ae4ab161 (patch)
treebd28aac7ef1a5b7857e7867fee893daf0e6403c9 /proto/ospf
parent4bb18dd2daa1e13ab4f9aaff2ddc4875c4776559 (diff)
downloadbird-054a352475437d924e473c95b5d3ad01ae4ab161.tar
bird-054a352475437d924e473c95b5d3ad01ae4ab161.zip
Don't send dbdes before rtlsa origination.
Diffstat (limited to 'proto/ospf')
-rw-r--r--proto/ospf/dbdes.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/proto/ospf/dbdes.c b/proto/ospf/dbdes.c
index b92523a..67ef2fa 100644
--- a/proto/ospf/dbdes.c
+++ b/proto/ospf/dbdes.c
@@ -30,6 +30,10 @@ ospf_dbdes_tx(struct ospf_neighbor *n)
u16 i,j;
u8 *aa,*bb;
+ if((oa->rt==NULL)||(EMPTY_LIST(oa->lsal))) originate_rt_lsa(oa);
+ oa->origrt=0;
+
+
p=(struct proto *)(ifa->proto);
switch(n->state)
@@ -54,9 +58,6 @@ 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)))
{