mirror of
				https://gitlab.labs.nic.cz/labs/bird.git
				synced 2024-05-11 16:54:54 +00:00 
			
		
		
		
	Originate rt lsa before sending first dbdes.
This commit is contained in:
		| @@ -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))) | ||||||
|       { |       { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user