]>
Commit | Line | Data |
---|---|---|
7fd0729f G |
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 | ||
385a1e07 G |
26 | #define PROTECTED_RESOURCE_STRLEN 100 |
27 | ||
7fd0729f | 28 | extern void ospf_ti_lfa_compute(struct ospf_area *area, |
385a1e07 G |
29 | struct route_table *new_table, |
30 | enum protection_type protection_type); | |
7fd0729f G |
31 | |
32 | /* unit testing */ | |
385a1e07 G |
33 | extern void ospf_ti_lfa_generate_p_spaces(struct ospf_area *area, |
34 | enum protection_type protection_type); | |
7fd0729f G |
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); | |
385a1e07 G |
38 | void ospf_print_protected_resource( |
39 | struct protected_resource *protected_resource, char *buf); | |
7fd0729f G |
40 | |
41 | #endif /* _OSPF_TI_LFA_H */ |