summaryrefslogtreecommitdiff
path: root/ospfd/ospf_spf.h
diff options
context:
space:
mode:
authorGalaxyGorilla <sascha@netdef.org>2020-08-25 14:13:08 +0000
committerGalaxyGorilla <sascha@netdef.org>2020-08-27 09:05:51 +0000
commit81443a283b6ec6f90249f594aad68d2d711e0805 (patch)
tree919d89b48c0b71f39667cf0082dffd1df27e892e /ospfd/ospf_spf.h
parent4519ba13f9aaa5a0ddee503063f6e3a94c46c58c (diff)
ospfd: use a new vertex list for every SPF run
In the context of TI-LFA it is necessary to have multiple representations of SPFs for so called P and Q spaces. Hence it makes sense to start with fresh vertex lists, and only delete them when the SPF calculation is not a 'dry run'. Signed-off-by: GalaxyGorilla <sascha@netdef.org>
Diffstat (limited to 'ospfd/ospf_spf.h')
-rw-r--r--ospfd/ospf_spf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ospfd/ospf_spf.h b/ospfd/ospf_spf.h
index 0371146420..2dc0f8b886 100644
--- a/ospfd/ospf_spf.h
+++ b/ospfd/ospf_spf.h
@@ -82,6 +82,7 @@ extern int ospf_spf_calculate_areas(struct ospf *ospf,
struct route_table *new_rtrs,
bool is_dry_run, bool is_root_node);
extern void ospf_rtrs_free(struct route_table *);
+extern void ospf_spf_cleanup(struct vertex *spf, struct list *vertex_list);
extern void ospf_spf_print(struct vty *vty, struct vertex *v, int i);