summaryrefslogtreecommitdiff
path: root/ospfd/ospf_route.c
diff options
context:
space:
mode:
authorManoj Naragund <mnaragund@vmware.com>2022-11-21 03:35:01 -0800
committerManoj Naragund <mnaragund@vmware.com>2023-01-19 21:03:03 -0800
commitee09fbc0a57dcf323223e669db5e30b7e49bdded (patch)
treee717b2e8f29df4e5bbad3697b2cad87e32d184b3 /ospfd/ospf_route.c
parent75b837a3d5908e8c41954e1a659f8e44de610c04 (diff)
ospfd: ospf hello changes.
Description: The changes involve setting DC bit on ospf hellos and addition of new DO_NOT_AGE flag. Signed-off-by: Manoj Naragund <mnaragund@vmware.com>
Diffstat (limited to 'ospfd/ospf_route.c')
-rw-r--r--ospfd/ospf_route.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/ospfd/ospf_route.c b/ospfd/ospf_route.c
index 6360d8ec60..9b9b61bdb3 100644
--- a/ospfd/ospf_route.c
+++ b/ospfd/ospf_route.c
@@ -986,6 +986,16 @@ void ospf_prune_unreachable_routers(struct route_table *rtrs)
&or->u.std.area_id);
}
+ /* Unset the DNA flag on lsa, if the router
+ * which generated this lsa is no longer
+ * reachabele.
+ */
+ (CHECK_FLAG(or->u.std.origin->ls_age,
+ DO_NOT_AGE))
+ ? UNSET_FLAG(or->u.std.origin->ls_age,
+ DO_NOT_AGE)
+ : 0;
+
listnode_delete(paths, or);
ospf_route_free(or);
}