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; if not, write to the Free Software Foundation, Inc.,
23 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 #ifndef _ZEBRA_ISIS_ROUTE_H
26 #define _ZEBRA_ISIS_ROUTE_H
33 struct in6_addr router_address6;
36 #endif /* HAVE_IPV6 */
42 struct in_addr router_address;
46 struct isis_route_info
48 #define ISIS_ROUTE_FLAG_ACTIVE 0x01 /* active route for the prefix */
49 #define ISIS_ROUTE_FLAG_ZEBRA_SYNCED 0x02 /* set when route synced to zebra */
50 #define ISIS_ROUTE_FLAG_ZEBRA_RESYNC 0x04 /* set when route needs to sync */
54 struct list *nexthops;
56 struct list *nexthops6;
57 #endif /* HAVE_IPV6 */
60 struct isis_route_info *isis_route_create (struct prefix *prefix,
61 u_int32_t cost, u_int32_t depth,
62 struct list *adjacencies,
63 struct isis_area *area, int level);
65 void isis_route_validate (struct isis_area *area);
66 void isis_route_invalidate_table (struct isis_area *area,
67 struct route_table *table);
68 void isis_route_invalidate (struct isis_area *area);
70 #endif /* _ZEBRA_ISIS_ROUTE_H */