ospfd: ospf-start-lsreq-b4-exchange.patch

OSPFv2: Don't wait for state change to Exchange to start LSReq
This commit is contained in:
Donald Sharp 2015-05-19 18:03:50 -07:00
parent 907f92c8fc
commit 97dba7b704
2 changed files with 5 additions and 1 deletions

View file

@ -338,7 +338,8 @@ nsm_exchange_done (struct ospf_neighbor *nbr)
return NSM_Full; return NSM_Full;
/* Send Link State Request. */ /* Send Link State Request. */
ospf_ls_req_send (nbr); if (nbr->t_ls_req == NULL)
ospf_ls_req_send (nbr);
return NSM_Loading; return NSM_Loading;
} }

View file

@ -1205,6 +1205,9 @@ ospf_db_desc_proc (struct stream *s, struct ospf_interface *oi,
/* Save received neighbor values from DD. */ /* Save received neighbor values from DD. */
ospf_db_desc_save_current (nbr, dd); ospf_db_desc_save_current (nbr, dd);
if (!nbr->t_ls_req)
ospf_ls_req_send (nbr);
} }
static int static int