blob: 7137948eb25ea696b83e330dacf12ab9bba2bfee [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
29struct isis_nexthop6 {
30 unsigned int ifindex;
31 struct in6_addr ip6;
32 unsigned int lock;
33};
34#endif /* HAVE_IPV6 */
35
36struct isis_nexthop {
37 unsigned int ifindex;
38 struct in_addr ip;
39 unsigned int lock;
40};
41
42struct isis_route_info {
43#define ISIS_ROUTE_FLAG_ZEBRA_SYNC 0x01
44#define ISIS_ROUTE_FLAG_ACTIVE 0x02
45 u_char flag;
46 u_int32_t cost;
47 u_int32_t depth;
48 struct list *nexthops;
49#ifdef HAVE_IPV6
50 struct list *nexthops6;
51#endif /* HAVE_IPV6 */
52};
53
54struct isis_route_info *isis_route_create (struct prefix *prefix,
55 u_int32_t cost, u_int32_t depth,
56 struct list *adjacencies,
57 struct isis_area *area);
58
59int isis_route_validate (struct thread *thread);
60
61#endif /* _ZEBRA_ISIS_ROUTE_H */