]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
OSPFv3: Fix intra-area-prefix-LSA origination on DR
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Wed, 18 Nov 2020 16:37:29 +0000 (17:37 +0100)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Wed, 18 Nov 2020 16:37:29 +0000 (17:37 +0100)
When a new link-LSA is originated, we need to notify intra-area-prefix-LSA
handling, like when a new link-LSA is received. Otherwise a new network
prefix added to a DR is not propagated immediately.

Thanks to Bala Sajja for the bugreport.

proto/ospf/topology.c

index f1f6570d935bd9c1791abca917e34fafbc0ae149..ea7176fd21df33aa81425285f6011779b6267f0d 100644 (file)
@@ -1455,6 +1455,9 @@ ospf_originate_link_lsa(struct ospf_proto *p, struct ospf_iface *ifa)
   prepare_link_lsa_body(p, ifa);
 
   ifa->link_lsa = ospf_originate_lsa(p, &lsa);
+
+  /* RFC 5340 4.4.3 Events 6+7 - new Link LSA is locally originated */
+  ospf_notify_net_lsa(ifa);
 }