]> git.proxmox.com Git - mirror_frr.git/blob - eigrpd/eigrp_network.h
Merge pull request #454 from dwalton76/hide-router-bgp-peer-ipv4-unicast-commands
[mirror_frr.git] / eigrpd / eigrp_network.h
1 /*
2 * EIGRP Network Related Functions.
3 * Copyright (C) 2013-2014
4 * Authors:
5 * Donnie Savage
6 * Jan Janovic
7 * Matej Perina
8 * Peter Orsag
9 * Peter Paluch
10 *
11 * This file is part of GNU Zebra.
12 *
13 * GNU Zebra is free software; you can redistribute it and/or modify it
14 * under the terms of the GNU General Public License as published by the
15 * Free Software Foundation; either version 2, or (at your option) any
16 * later version.
17 *
18 * GNU Zebra is distributed in the hope that it will be useful, but
19 * WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 * General Public License for more details.
22 *
23 * You should have received a copy of the GNU General Public License
24 * along with GNU Zebra; see the file COPYING. If not, write to the Free
25 * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
26 * 02111-1307, USA.
27 */
28
29 #ifndef _ZEBRA_EIGRP_NETWORK_H
30 #define _ZEBRA_EIGRP_NETWORK_H
31
32 /* Prototypes */
33
34 extern int eigrp_sock_init (void);
35 extern int eigrp_if_ipmulticast (struct eigrp *, struct prefix *, unsigned int);
36 extern int eigrp_network_set (struct eigrp *, struct prefix_ipv4 *);
37 extern int eigrp_network_unset (struct eigrp *eigrp, struct prefix_ipv4 *p);
38
39 extern int eigrp_hello_timer (struct thread *);
40 extern void eigrp_if_update (struct interface *);
41 extern int eigrp_if_add_allspfrouters (struct eigrp *, struct prefix *,
42 unsigned int);
43 extern int eigrp_if_drop_allspfrouters (struct eigrp *top, struct prefix *p,
44 unsigned int ifindex);
45 extern void eigrp_adjust_sndbuflen (struct eigrp *, unsigned int);
46
47 extern u_int32_t eigrp_calculate_metrics (struct eigrp *, struct eigrp_metrics *);
48 extern u_int32_t eigrp_calculate_total_metrics (struct eigrp *, struct eigrp_neighbor_entry *);
49 extern u_char eigrp_metrics_is_same(struct eigrp_metrics *,struct eigrp_metrics *);
50 extern void eigrp_external_routes_refresh (struct eigrp *, int);
51
52 #endif /* EIGRP_NETWORK_H_ */