3 * Copyright (C) 2020 NetDEF, Inc.
6 * This file is part of FRR.
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
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.
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
23 #ifndef _OSPF_TI_LFA_H
24 #define _OSPF_TI_LFA_H
26 #define PROTECTED_RESOURCE_STRLEN 100
28 extern void ospf_ti_lfa_compute(struct ospf_area
*area
,
29 struct route_table
*new_table
,
30 enum protection_type protection_type
);
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
);
41 #endif /* _OSPF_TI_LFA_H */