]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospf6d: Handling Topo Change in GR-HELPER mode for max-age lsas
authorRajesh Girada <rgirada@vmware.com>
Mon, 20 May 2024 16:34:41 +0000 (09:34 -0700)
committerRajesh Girada <rgirada@vmware.com>
Thu, 6 Jun 2024 11:34:39 +0000 (04:34 -0700)
Description:
OSPF6 GR HELPER router should  consider as TOPOCHANGE when
it receives lsas with max age and should exit from Helper.
But, it is not exiting from helper because this max age lsa is
considered as duplicated lsa since the sender uses same seq
number for max age lsa from the previous lsa update.
Currently, topo change is not considered for duplicated lsas.
So removed the duplicated check when validating TOPOCHNAGE.

Signed-off-by: Rajesh Girada <rgirada@vmware.com>
ospf6d/ospf6_flood.c

index 98d3bbc5197bb0e78d6ba2b67df3ac5231f6c74a..b87aa2ffe1033a4893ec6ff4a29b8521a88a7a7c 100644 (file)
@@ -295,9 +295,7 @@ void ospf6_install_lsa(struct ospf6_lsa *lsa)
        lsa->installed = now;
 
        /* Topo change handling */
-       if (CHECK_LSA_TOPO_CHG_ELIGIBLE(ntohs(lsa->header->type))
-           && !CHECK_FLAG(lsa->flag, OSPF6_LSA_DUPLICATE)) {
-
+       if (CHECK_LSA_TOPO_CHG_ELIGIBLE(ntohs(lsa->header->type))) {
                /* check if it is new lsa ? or existing lsa got modified ?*/
                if (!old || OSPF6_LSA_IS_CHANGED(old, lsa))
                        ospf6_helper_handle_topo_chg(ospf6, lsa);