diff options
| author | GalaxyGorilla <sascha@netdef.org> | 2020-08-05 08:44:21 +0000 | 
|---|---|---|
| committer | GalaxyGorilla <sascha@netdef.org> | 2021-01-19 15:32:13 +0000 | 
| commit | 7fd0729f762d96ca78057ed126afdaacc0dd1fd9 (patch) | |
| tree | 0a536202b8ca9e77796d6d1ab661445e970c589d /ospfd/ospf_ti_lfa.h | |
| parent | 6351ea6ebf64524583e7a54b4af25e140109d790 (diff) | |
ospfd: TI-LFA basic infrastructure and algorithms
Signed-off-by: GalaxyGorilla <sascha@netdef.org>
Diffstat (limited to 'ospfd/ospf_ti_lfa.h')
| -rw-r--r-- | ospfd/ospf_ti_lfa.h | 35 | 
1 files changed, 35 insertions, 0 deletions
diff --git a/ospfd/ospf_ti_lfa.h b/ospfd/ospf_ti_lfa.h new file mode 100644 index 0000000000..8f2effae48 --- /dev/null +++ b/ospfd/ospf_ti_lfa.h @@ -0,0 +1,35 @@ +/* + * OSPF calculation. + * Copyright (C) 2020  NetDEF, Inc. + *                     Sascha Kattelmann + * + * This file is part of FRR. + * + * FRR is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2, or (at your option) any + * later version. + * + * FRR is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; see the file COPYING; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef _OSPF_TI_LFA_H +#define _OSPF_TI_LFA_H + +extern void ospf_ti_lfa_compute(struct ospf_area *area, +				struct route_table *new_table); + +/* unit testing */ +extern void ospf_ti_lfa_generate_p_spaces(struct ospf_area *area); +extern void ospf_ti_lfa_insert_backup_paths(struct ospf_area *area, +					    struct route_table *new_table); +extern void ospf_ti_lfa_free_p_spaces(struct ospf_area *area); + +#endif /* _OSPF_TI_LFA_H */  | 
