]>
Commit | Line | Data |
---|---|---|
acddc0ed | 1 | // SPDX-License-Identifier: GPL-2.0-or-later |
7fd0729f G |
2 | /* |
3 | * OSPF calculation. | |
4 | * Copyright (C) 2020 NetDEF, Inc. | |
5 | * Sascha Kattelmann | |
7fd0729f G |
6 | */ |
7 | ||
8 | #ifndef _OSPF_TI_LFA_H | |
9 | #define _OSPF_TI_LFA_H | |
10 | ||
385a1e07 G |
11 | #define PROTECTED_RESOURCE_STRLEN 100 |
12 | ||
7fd0729f | 13 | extern void ospf_ti_lfa_compute(struct ospf_area *area, |
385a1e07 G |
14 | struct route_table *new_table, |
15 | enum protection_type protection_type); | |
7fd0729f G |
16 | |
17 | /* unit testing */ | |
385a1e07 G |
18 | extern void ospf_ti_lfa_generate_p_spaces(struct ospf_area *area, |
19 | enum protection_type protection_type); | |
7fd0729f G |
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); | |
385a1e07 G |
23 | void ospf_print_protected_resource( |
24 | struct protected_resource *protected_resource, char *buf); | |
7fd0729f G |
25 | |
26 | #endif /* _OSPF_TI_LFA_H */ |