]> git.proxmox.com Git - mirror_frr.git/blame - eigrpd/eigrp_topology.h
Merge remote-tracking branch 'origin/master' into datacenter
[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 *
27 * You should have received a copy of the GNU General Public License
28 * along with GNU Zebra; see the file COPYING. If not, write to the Free
29 * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
30 * 02111-1307, USA.
31 */
32
33#ifndef _ZEBRA_EIGRP_TOPOLOGY_H
34#define _ZEBRA_EIGRP_TOPOLOGY_H
35
36
37/* EIGRP Topology table related functions. */
38extern struct list *eigrp_topology_new (void);
39extern void eigrp_topology_init (struct list*);
40extern struct eigrp_prefix_entry *eigrp_prefix_entry_new (void);
41extern struct eigrp_neighbor_entry *eigrp_neighbor_entry_new (void);
42extern void eigrp_topology_free (struct list *);
43extern void eigrp_topology_cleanup (struct list *);
44extern void eigrp_prefix_entry_add (struct list *, struct eigrp_prefix_entry *);
45extern void eigrp_neighbor_entry_add (struct eigrp_prefix_entry *, struct eigrp_neighbor_entry *);
46extern void eigrp_prefix_entry_delete (struct list *, struct eigrp_prefix_entry *);
47extern void eigrp_neighbor_entry_delete (struct eigrp_prefix_entry *, struct eigrp_neighbor_entry *);
48extern void eigrp_topology_delete_all (struct list *);
49extern unsigned int eigrp_topology_table_isempty (struct list *);
50extern struct eigrp_prefix_entry *eigrp_topology_table_lookup_ipv4 (struct list *, struct prefix_ipv4 *);
51extern struct list *eigrp_topology_get_successor (struct eigrp_prefix_entry *);
962251ae 52extern struct list *eigrp_topology_get_successor_max (struct eigrp_prefix_entry *pe, unsigned int maxpaths);
7f57883e
DS
53extern struct eigrp_neighbor_entry *eigrp_prefix_entry_lookup (struct list *, struct eigrp_neighbor *);
54extern struct list *eigrp_neighbor_prefixes_lookup(struct eigrp *, struct eigrp_neighbor *);
55extern void eigrp_topology_update_all_node_flags (struct eigrp *);
56extern void eigrp_topology_update_node_flags (struct eigrp_prefix_entry *);
57extern int eigrp_topology_update_distance ( struct eigrp_fsm_action_message *);
58extern void eigrp_update_routing_table(struct eigrp_prefix_entry *);
59extern void eigrp_topology_neighbor_down(struct eigrp *, struct eigrp_neighbor *);
60extern void eigrp_update_topology_table_prefix(struct list *, struct eigrp_prefix_entry * );
f6709c16 61
7f57883e 62#endif