]> git.proxmox.com Git - mirror_frr.git/blame - eigrpd/eigrp_topology.h
Merge pull request #2970 from dslicenc/more-bool-use-json
[mirror_frr.git] / eigrpd / eigrp_topology.h
CommitLineData
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
7f57883e 35/* EIGRP Topology table related functions. */
9ca66cc7
DS
36extern struct route_table *eigrp_topology_new(void);
37extern void eigrp_topology_init(struct route_table *table);
d62a17ae 38extern struct eigrp_prefix_entry *eigrp_prefix_entry_new(void);
255ab940 39extern struct eigrp_nexthop_entry *eigrp_nexthop_entry_new(void);
9ca66cc7
DS
40extern void eigrp_topology_free(struct route_table *table);
41extern void eigrp_topology_cleanup(struct route_table *table);
42extern void eigrp_prefix_entry_add(struct route_table *table,
43 struct eigrp_prefix_entry *pe);
255ab940 44extern void eigrp_nexthop_entry_add(struct eigrp_prefix_entry *,
996c9314 45 struct eigrp_nexthop_entry *);
9ca66cc7
DS
46extern void eigrp_prefix_entry_delete(struct route_table *table,
47 struct eigrp_prefix_entry *pe);
255ab940 48extern void eigrp_nexthop_entry_delete(struct eigrp_prefix_entry *,
996c9314 49 struct eigrp_nexthop_entry *);
9ca66cc7 50extern void eigrp_topology_delete_all(struct route_table *table);
d62a17ae 51extern unsigned int eigrp_topology_table_isempty(struct list *);
52extern struct eigrp_prefix_entry *
996c9314 53eigrp_topology_table_lookup_ipv4(struct route_table *table, struct prefix *p);
d62a17ae 54extern struct list *eigrp_topology_get_successor(struct eigrp_prefix_entry *);
55extern struct list *
56eigrp_topology_get_successor_max(struct eigrp_prefix_entry *pe,
57 unsigned int maxpaths);
255ab940 58extern struct eigrp_nexthop_entry *
d62a17ae 59eigrp_prefix_entry_lookup(struct list *, struct eigrp_neighbor *);
60extern struct list *eigrp_neighbor_prefixes_lookup(struct eigrp *,
61 struct eigrp_neighbor *);
62extern void eigrp_topology_update_all_node_flags(struct eigrp *);
63extern void eigrp_topology_update_node_flags(struct eigrp_prefix_entry *);
996c9314
LB
64extern enum metric_change
65eigrp_topology_update_distance(struct eigrp_fsm_action_message *);
7f57883e 66extern void eigrp_update_routing_table(struct eigrp_prefix_entry *);
d62a17ae 67extern void eigrp_topology_neighbor_down(struct eigrp *,
68 struct eigrp_neighbor *);
9ca66cc7
DS
69extern void eigrp_update_topology_table_prefix(struct route_table *table,
70 struct eigrp_prefix_entry *pe);
f6709c16 71
7f57883e 72#endif