]> git.proxmox.com Git - mirror_frr.git/blob - ospfd/ospf_ti_lfa.h
Merge pull request #7898 from donaldsharp/pim_igmp_crash
[mirror_frr.git] / ospfd / ospf_ti_lfa.h
1 /*
2 * OSPF calculation.
3 * Copyright (C) 2020 NetDEF, Inc.
4 * Sascha Kattelmann
5 *
6 * This file is part of FRR.
7 *
8 * FRR is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by the
10 * Free Software Foundation; either version 2, or (at your option) any
11 * later version.
12 *
13 * FRR is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License along
19 * with this program; see the file COPYING; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23 #ifndef _OSPF_TI_LFA_H
24 #define _OSPF_TI_LFA_H
25
26 #define PROTECTED_RESOURCE_STRLEN 100
27
28 extern void ospf_ti_lfa_compute(struct ospf_area *area,
29 struct route_table *new_table,
30 enum protection_type protection_type);
31
32 /* unit testing */
33 extern void ospf_ti_lfa_generate_p_spaces(struct ospf_area *area,
34 enum protection_type protection_type);
35 extern void ospf_ti_lfa_insert_backup_paths(struct ospf_area *area,
36 struct route_table *new_table);
37 extern void ospf_ti_lfa_free_p_spaces(struct ospf_area *area);
38 void ospf_print_protected_resource(
39 struct protected_resource *protected_resource, char *buf);
40
41 #endif /* _OSPF_TI_LFA_H */