]> git.proxmox.com Git - mirror_frr.git/blame - isisd/isis_spf.h
zebra, lib: fix the ZEBRA_INTERFACE_VRF_UPDATE zapi message
[mirror_frr.git] / isisd / isis_spf.h
CommitLineData
eb5d44eb 1/*
2 * IS-IS Rout(e)ing protocol - isis_spf.h
d62a17ae 3 * IS-IS Shortest Path First algorithm
eb5d44eb 4 *
5 * Copyright (C) 2001,2002 Sampo Saaristo
d62a17ae 6 * Tampere University of Technology
eb5d44eb 7 * Institute of Communications Engineering
8 *
d62a17ae 9 * This program is free software; you can redistribute it and/or modify it
10 * under the terms of the GNU General Public Licenseas published by the Free
11 * Software Foundation; either version 2 of the License, or (at your option)
eb5d44eb 12 * any later version.
13 *
d62a17ae 14 * This program is distributed in the hope that it will be useful,but WITHOUT
15 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
eb5d44eb 17 * more details.
896014f4
DL
18 *
19 * You should have received a copy of the GNU General Public License along
20 * with this program; see the file COPYING; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
eb5d44eb 22 */
23
24#ifndef _ZEBRA_ISIS_SPF_H
25#define _ZEBRA_ISIS_SPF_H
26
02cd317e 27struct isis_spftree;
eb5d44eb 28
d62a17ae 29struct isis_spftree *isis_spftree_new(struct isis_area *area);
3dace42d
CF
30void isis_spf_invalidate_routes(struct isis_spftree *tree);
31void isis_spf_verify_routes(struct isis_area *area,
32 struct isis_spftree **trees);
d62a17ae 33void isis_spftree_del(struct isis_spftree *spftree);
34void spftree_area_init(struct isis_area *area);
35void spftree_area_del(struct isis_area *area);
36void spftree_area_adj_del(struct isis_area *area, struct isis_adjacency *adj);
d62db30d
CF
37#define isis_spf_schedule(area, level) \
38 _isis_spf_schedule((area), (level), __func__, \
39 __FILE__, __LINE__)
40int _isis_spf_schedule(struct isis_area *area, int level,
41 const char *func, const char *file, int line);
d62a17ae 42void isis_spf_cmds_init(void);
02cd317e 43void isis_spf_print(struct isis_spftree *spftree, struct vty *vty);
b30e837b
CF
44struct isis_spftree *isis_run_hopcount_spf(struct isis_area *area,
45 uint8_t *sysid,
46 struct isis_spftree *spftree);
eb5d44eb 47#endif /* _ZEBRA_ISIS_SPF_H */