]>
git.proxmox.com Git - mirror_frr.git/blob - isisd/isis_route.h
2 * IS-IS Rout(e)ing protocol - isis_route.h
4 * Copyright (C) 2001,2002 Sampo Saaristo
5 * Tampere University of Technology
6 * Institute of Communications Engineering
8 * based on ../ospf6d/ospf6_route.[ch]
11 * This program is free software; you can redistribute it and/or modify it
12 * under the terms of the GNU General Public Licenseas published by the Free
13 * Software Foundation; either version 2 of the License, or (at your option)
16 * This program is distributed in the hope that it will be useful,but WITHOUT
17 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
21 * You should have received a copy of the GNU General Public License along
22 * with this program; see the file COPYING; if not, write to the Free Software
23 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25 #ifndef _ZEBRA_ISIS_ROUTE_H
26 #define _ZEBRA_ISIS_ROUTE_H
28 #include "lib/nexthop.h"
37 struct isis_route_info
{
38 #define ISIS_ROUTE_FLAG_ACTIVE 0x01 /* active route for the prefix */
39 #define ISIS_ROUTE_FLAG_ZEBRA_SYNCED 0x02 /* set when route synced to zebra */
40 #define ISIS_ROUTE_FLAG_ZEBRA_RESYNC 0x04 /* set when route needs to sync */
44 struct list
*nexthops
;
47 DECLARE_HOOK(isis_route_update_hook
,
48 (struct isis_area
* area
, struct prefix
*prefix
,
49 struct isis_route_info
*route_info
),
50 (area
, prefix
, route_info
))
52 struct isis_route_info
*isis_route_create(struct prefix
*prefix
,
53 struct prefix_ipv6
*src_p
,
56 struct list
*adjacencies
,
57 struct isis_area
*area
,
58 struct route_table
*table
);
60 /* Walk the given table and install new routes to zebra and remove old ones.
61 * route status is tracked using ISIS_ROUTE_FLAG_ACTIVE */
62 void isis_route_verify_table(struct isis_area
*area
,
63 struct route_table
*table
);
65 /* Same as isis_route_verify_table, but merge L1 and L2 routes before */
66 void isis_route_verify_merge(struct isis_area
*area
,
67 struct route_table
*level1_table
,
68 struct route_table
*level2_table
);
70 /* Unset ISIS_ROUTE_FLAG_ACTIVE on all routes. Used before running spf. */
71 void isis_route_invalidate_table(struct isis_area
*area
,
72 struct route_table
*table
);
74 #endif /* _ZEBRA_ISIS_ROUTE_H */