blob: 59b6c226feb9becc370ca0f3f3d37609fe2ae701 [file] [log] [blame]
jardineb5d44e2003-12-23 08:09:43 +00001/*
2 * IS-IS Rout(e)ing protocol - isis_route.h
3 *
4 * Copyright (C) 2001,2002 Sampo Saaristo
5 * Tampere University of Technology
6 * Institute of Communications Engineering
7 *
8 * based on ../ospf6d/ospf6_route.[ch]
9 * by Yasuhiro Ohara
10 *
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)
14 * any later version.
15 *
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
19 * more details.
20
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.
24 */
25#ifndef _ZEBRA_ISIS_ROUTE_H
26#define _ZEBRA_ISIS_ROUTE_H
27
28#ifdef HAVE_IPV6
hassof390d2c2004-09-10 20:48:21 +000029struct isis_nexthop6
30{
jardineb5d44e2003-12-23 08:09:43 +000031 unsigned int ifindex;
32 struct in6_addr ip6;
33 unsigned int lock;
34};
35#endif /* HAVE_IPV6 */
36
hassof390d2c2004-09-10 20:48:21 +000037struct isis_nexthop
38{
jardineb5d44e2003-12-23 08:09:43 +000039 unsigned int ifindex;
40 struct in_addr ip;
41 unsigned int lock;
42};
43
hassof390d2c2004-09-10 20:48:21 +000044struct isis_route_info
45{
jardineb5d44e2003-12-23 08:09:43 +000046#define ISIS_ROUTE_FLAG_ZEBRA_SYNC 0x01
47#define ISIS_ROUTE_FLAG_ACTIVE 0x02
hassof390d2c2004-09-10 20:48:21 +000048 u_char flag;
jardineb5d44e2003-12-23 08:09:43 +000049 u_int32_t cost;
50 u_int32_t depth;
51 struct list *nexthops;
52#ifdef HAVE_IPV6
53 struct list *nexthops6;
hassof390d2c2004-09-10 20:48:21 +000054#endif /* HAVE_IPV6 */
jardineb5d44e2003-12-23 08:09:43 +000055};
56
hassof390d2c2004-09-10 20:48:21 +000057struct isis_route_info *isis_route_create (struct prefix *prefix,
58 u_int32_t cost, u_int32_t depth,
59 struct list *adjacencies,
60 struct isis_area *area);
jardineb5d44e2003-12-23 08:09:43 +000061
62int isis_route_validate (struct thread *thread);
63
64#endif /* _ZEBRA_ISIS_ROUTE_H */