]>
git.proxmox.com Git - mirror_frr.git/blob - eigrpd/eigrp_topology.h
2 * EIGRP Topology Table.
3 * Copyright (C) 2013-2016
15 * This file is part of GNU Zebra.
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
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.
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
32 #ifndef _ZEBRA_EIGRP_TOPOLOGY_H
33 #define _ZEBRA_EIGRP_TOPOLOGY_H
36 /* EIGRP Topology table related functions. */
37 extern struct list
*eigrp_topology_new (void);
38 extern void eigrp_topology_init (struct list
*);
39 extern struct eigrp_prefix_entry
*eigrp_prefix_entry_new (void);
40 extern struct eigrp_neighbor_entry
*eigrp_neighbor_entry_new (void);
41 extern void eigrp_topology_free (struct list
*);
42 extern void eigrp_topology_cleanup (struct list
*);
43 extern void eigrp_prefix_entry_add (struct list
*, struct eigrp_prefix_entry
*);
44 extern void eigrp_neighbor_entry_add (struct eigrp_prefix_entry
*, struct eigrp_neighbor_entry
*);
45 extern void eigrp_prefix_entry_delete (struct list
*, struct eigrp_prefix_entry
*);
46 extern void eigrp_neighbor_entry_delete (struct eigrp_prefix_entry
*, struct eigrp_neighbor_entry
*);
47 extern void eigrp_topology_delete_all (struct list
*);
48 extern unsigned int eigrp_topology_table_isempty (struct list
*);
49 extern struct eigrp_prefix_entry
*eigrp_topology_table_lookup_ipv4 (struct list
*, struct prefix_ipv4
*);
50 extern struct list
*eigrp_topology_get_successor (struct eigrp_prefix_entry
*);
51 extern struct list
*eigrp_topology_get_successor_max (struct eigrp_prefix_entry
*pe
, unsigned int maxpaths
);
52 extern struct eigrp_neighbor_entry
*eigrp_prefix_entry_lookup (struct list
*, struct eigrp_neighbor
*);
53 extern struct list
*eigrp_neighbor_prefixes_lookup(struct eigrp
*, struct eigrp_neighbor
*);
54 extern void eigrp_topology_update_all_node_flags (struct eigrp
*);
55 extern void eigrp_topology_update_node_flags (struct eigrp_prefix_entry
*);
56 extern int eigrp_topology_update_distance ( struct eigrp_fsm_action_message
*);
57 extern void eigrp_update_routing_table(struct eigrp_prefix_entry
*);
58 extern void eigrp_topology_neighbor_down(struct eigrp
*, struct eigrp_neighbor
*);
59 extern void eigrp_update_topology_table_prefix(struct list
*, struct eigrp_prefix_entry
* );