]> git.proxmox.com Git - mirror_frr.git/blob - isisd/isis_route.h
Merge pull request #549 from qlyoung/fix-poll-eof
[mirror_frr.git] / isisd / isis_route.h
1 /*
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; see the file COPYING; if not, write to the Free Software
23 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
24 */
25 #ifndef _ZEBRA_ISIS_ROUTE_H
26 #define _ZEBRA_ISIS_ROUTE_H
27
28 struct isis_nexthop6
29 {
30 ifindex_t ifindex;
31 struct in6_addr ip6;
32 struct in6_addr router_address6;
33 unsigned int lock;
34 };
35
36 struct isis_nexthop
37 {
38 ifindex_t ifindex;
39 struct in_addr ip;
40 struct in_addr router_address;
41 unsigned int lock;
42 };
43
44 struct isis_route_info
45 {
46 #define ISIS_ROUTE_FLAG_ACTIVE 0x01 /* active route for the prefix */
47 #define ISIS_ROUTE_FLAG_ZEBRA_SYNCED 0x02 /* set when route synced to zebra */
48 #define ISIS_ROUTE_FLAG_ZEBRA_RESYNC 0x04 /* set when route needs to sync */
49 u_char flag;
50 u_int32_t cost;
51 u_int32_t depth;
52 struct list *nexthops;
53 struct list *nexthops6;
54 };
55
56 struct isis_route_info *isis_route_create (struct prefix *prefix,
57 u_int32_t cost, u_int32_t depth,
58 struct list *adjacencies,
59 struct isis_area *area, int level);
60
61 void isis_route_validate (struct isis_area *area);
62 void isis_route_invalidate_table (struct isis_area *area,
63 struct route_table *table);
64 void isis_route_invalidate (struct isis_area *area);
65
66 #endif /* _ZEBRA_ISIS_ROUTE_H */