]> git.proxmox.com Git - mirror_frr.git/blame - isisd/isis_route.h
debian: add pkg-config to build-depends
[mirror_frr.git] / isisd / isis_route.h
CommitLineData
eb5d44eb 1/*
2 * IS-IS Rout(e)ing protocol - isis_route.h
3 *
4 * Copyright (C) 2001,2002 Sampo Saaristo
ac4d0be5 5 * Tampere University of Technology
eb5d44eb 6 * Institute of Communications Engineering
7 *
8 * based on ../ospf6d/ospf6_route.[ch]
9 * by Yasuhiro Ohara
10 *
ac4d0be5 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)
eb5d44eb 14 * any later version.
15 *
ac4d0be5 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
eb5d44eb 19 * more details.
20
ac4d0be5 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.,
eb5d44eb 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
ac4d0be5 28struct isis_nexthop6 {
29 ifindex_t ifindex;
30 struct in6_addr ip6;
31 struct in6_addr router_address6;
32 unsigned int lock;
eb5d44eb 33};
eb5d44eb 34
ac4d0be5 35struct isis_nexthop {
36 ifindex_t ifindex;
37 struct in_addr ip;
38 struct in_addr router_address;
39 unsigned int lock;
eb5d44eb 40};
41
ac4d0be5 42struct isis_route_info {
3f045a08
JB
43#define ISIS_ROUTE_FLAG_ACTIVE 0x01 /* active route for the prefix */
44#define ISIS_ROUTE_FLAG_ZEBRA_SYNCED 0x02 /* set when route synced to zebra */
45#define ISIS_ROUTE_FLAG_ZEBRA_RESYNC 0x04 /* set when route needs to sync */
ac4d0be5 46 u_char flag;
47 u_int32_t cost;
48 u_int32_t depth;
49 struct list *nexthops;
50 struct list *nexthops6;
eb5d44eb 51};
52
ac4d0be5 53struct isis_route_info *isis_route_create(struct prefix *prefix, u_int32_t cost,
54 u_int32_t depth,
55 struct list *adjacencies,
56 struct isis_area *area, int level);
eb5d44eb 57
ac4d0be5 58void isis_route_validate(struct isis_area *area);
59void isis_route_invalidate_table(struct isis_area *area,
60 struct route_table *table);
61void isis_route_invalidate(struct isis_area *area);
eb5d44eb 62
63#endif /* _ZEBRA_ISIS_ROUTE_H */