]> git.proxmox.com Git - mirror_frr.git/blob - ospfd/ospf_ti_lfa.h
*: auto-convert to SPDX License IDs
[mirror_frr.git] / ospfd / ospf_ti_lfa.h
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3 * OSPF calculation.
4 * Copyright (C) 2020 NetDEF, Inc.
5 * Sascha Kattelmann
6 */
7
8 #ifndef _OSPF_TI_LFA_H
9 #define _OSPF_TI_LFA_H
10
11 #define PROTECTED_RESOURCE_STRLEN 100
12
13 extern void ospf_ti_lfa_compute(struct ospf_area *area,
14 struct route_table *new_table,
15 enum protection_type protection_type);
16
17 /* unit testing */
18 extern void ospf_ti_lfa_generate_p_spaces(struct ospf_area *area,
19 enum protection_type protection_type);
20 extern void ospf_ti_lfa_insert_backup_paths(struct ospf_area *area,
21 struct route_table *new_table);
22 extern void ospf_ti_lfa_free_p_spaces(struct ospf_area *area);
23 void ospf_print_protected_resource(
24 struct protected_resource *protected_resource, char *buf);
25
26 #endif /* _OSPF_TI_LFA_H */