]>
Commit | Line | Data |
---|---|---|
7f57883e DS |
1 | /* |
2 | * EIGRP Topology Table. | |
3 | * Copyright (C) 2013-2016 | |
4 | * Authors: | |
5 | * Donnie Savage | |
6 | * Jan Janovic | |
7 | * Matej Perina | |
8 | * Peter Orsag | |
9 | * Peter Paluch | |
10 | * Frantisek Gazo | |
11 | * Tomas Hvorkovy | |
12 | * Martin Kontsek | |
13 | * Lukas Koribsky | |
14 | * | |
15 | * This file is part of GNU Zebra. | |
16 | * | |
17 | * GNU Zebra is free software; you can redistribute it and/or modify it | |
18 | * under the terms of the GNU General Public License as published by the | |
19 | * Free Software Foundation; either version 2, or (at your option) any | |
20 | * later version. | |
21 | * | |
22 | * GNU Zebra is distributed in the hope that it will be useful, but | |
23 | * WITHOUT ANY WARRANTY; without even the implied warranty of | |
24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
25 | * General Public License for more details. | |
26 | * | |
896014f4 DL |
27 | * You should have received a copy of the GNU General Public License along |
28 | * with this program; see the file COPYING; if not, write to the Free Software | |
29 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | |
7f57883e DS |
30 | */ |
31 | ||
32 | #ifndef _ZEBRA_EIGRP_TOPOLOGY_H | |
33 | #define _ZEBRA_EIGRP_TOPOLOGY_H | |
34 | ||
b4216e2c DL |
35 | #include "memory.h" |
36 | ||
37 | DECLARE_MTYPE(EIGRP_PREFIX_DESCRIPTOR); | |
38 | ||
7f57883e | 39 | /* EIGRP Topology table related functions. */ |
9ca66cc7 DS |
40 | extern struct route_table *eigrp_topology_new(void); |
41 | extern void eigrp_topology_init(struct route_table *table); | |
dc4accdd DS |
42 | extern struct eigrp_prefix_descriptor *eigrp_prefix_descriptor_new(void); |
43 | extern struct eigrp_route_descriptor *eigrp_route_descriptor_new(void); | |
0da93ecf | 44 | extern void eigrp_topology_free(struct eigrp *eigrp, struct route_table *table); |
dc4accdd DS |
45 | extern void eigrp_prefix_descriptor_add(struct route_table *table, |
46 | struct eigrp_prefix_descriptor *pe); | |
47 | extern void eigrp_route_descriptor_add(struct eigrp *eigrp, | |
48 | struct eigrp_prefix_descriptor *pe, | |
49 | struct eigrp_route_descriptor *ne); | |
50 | extern void eigrp_prefix_descriptor_delete(struct eigrp *eigrp, | |
51 | struct route_table *table, | |
52 | struct eigrp_prefix_descriptor *pe); | |
53 | extern void eigrp_route_descriptor_delete(struct eigrp *eigrp, | |
54 | struct eigrp_prefix_descriptor *pe, | |
55 | struct eigrp_route_descriptor *ne); | |
0da93ecf DS |
56 | extern void eigrp_topology_delete_all(struct eigrp *eigrp, |
57 | struct route_table *table); | |
dc4accdd | 58 | extern struct eigrp_prefix_descriptor * |
996c9314 | 59 | eigrp_topology_table_lookup_ipv4(struct route_table *table, struct prefix *p); |
d62a17ae | 60 | extern struct list * |
dc4accdd DS |
61 | eigrp_topology_get_successor(struct eigrp_prefix_descriptor *pe); |
62 | extern struct list * | |
63 | eigrp_topology_get_successor_max(struct eigrp_prefix_descriptor *pe, | |
d62a17ae | 64 | unsigned int maxpaths); |
dc4accdd DS |
65 | extern struct eigrp_route_descriptor * |
66 | eigrp_route_descriptor_lookup(struct list *entries, | |
67 | struct eigrp_neighbor *neigh); | |
0da93ecf DS |
68 | extern struct list *eigrp_neighbor_prefixes_lookup(struct eigrp *eigrp, |
69 | struct eigrp_neighbor *n); | |
70 | extern void eigrp_topology_update_all_node_flags(struct eigrp *eigrp); | |
dc4accdd DS |
71 | extern void |
72 | eigrp_topology_update_node_flags(struct eigrp *eigrp, | |
73 | struct eigrp_prefix_descriptor *pe); | |
996c9314 | 74 | extern enum metric_change |
0da93ecf DS |
75 | eigrp_topology_update_distance(struct eigrp_fsm_action_message *msg); |
76 | extern void eigrp_update_routing_table(struct eigrp *eigrp, | |
dc4accdd | 77 | struct eigrp_prefix_descriptor *pe); |
0da93ecf DS |
78 | extern void eigrp_topology_neighbor_down(struct eigrp *eigrp, |
79 | struct eigrp_neighbor *neigh); | |
dc4accdd DS |
80 | extern void |
81 | eigrp_update_topology_table_prefix(struct eigrp *eigrp, | |
82 | struct route_table *table, | |
83 | struct eigrp_prefix_descriptor *pe); | |
f6709c16 | 84 | |
7f57883e | 85 | #endif |