mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
Originate rt lsa before sending first dbdes.
This commit is contained in:
parent
0c69604c8d
commit
38203d789a
@ -14,6 +14,7 @@ ospf_dbdes_tx(struct ospf_neighbor *n)
|
|||||||
struct ospf_dbdes_packet *pkt;
|
struct ospf_dbdes_packet *pkt;
|
||||||
struct ospf_packet *op;
|
struct ospf_packet *op;
|
||||||
struct ospf_iface *ifa=n->ifa;
|
struct ospf_iface *ifa=n->ifa;
|
||||||
|
struct ospf_area *oa=ifa->oa;
|
||||||
u16 length;
|
u16 length;
|
||||||
struct proto *p;
|
struct proto *p;
|
||||||
u16 i,j;
|
u16 i,j;
|
||||||
@ -43,6 +44,9 @@ ospf_dbdes_tx(struct ospf_neighbor *n)
|
|||||||
case NEIGHBOR_EXCHANGE:
|
case NEIGHBOR_EXCHANGE:
|
||||||
n->myimms.bit.i=0;
|
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)) ||
|
if(((n->myimms.bit.ms) && (n->dds==n->ddr+1)) ||
|
||||||
((!(n->myimms.bit.ms)) && (n->dds==n->ddr)))
|
((!(n->myimms.bit.ms)) && (n->dds==n->ddr)))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user