]> git.proxmox.com Git - mirror_frr.git/blame - eigrpd/eigrp_interface.h
eigrp: Initial Commit
[mirror_frr.git] / eigrpd / eigrp_interface.h
CommitLineData
7f57883e
DS
1/*
2 * EIGRP Interface Functions.
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_INTERFACE_H_
34#define _ZEBRA_EIGRP_INTERFACE_H_
35
36/*Prototypes*/
37extern void eigrp_if_init (void);
38extern int eigrp_if_new_hook (struct interface *);
39extern int eigrp_if_delete_hook (struct interface *);
40
41extern void eigrp_del_if_params (struct eigrp_if_params *);
42extern struct eigrp_if_params *eigrp_new_if_params (void);
43extern struct eigrp_interface * eigrp_if_new (struct eigrp *, struct interface *,
44 struct prefix *);
45extern struct eigrp_interface * eigrp_if_table_lookup (struct interface *,
46 struct prefix *);
47extern struct eigrp_if_params *eigrp_lookup_if_params (struct interface *,
48 struct in_addr);
49extern int eigrp_if_up (struct eigrp_interface *);
50extern void eigrp_if_stream_set (struct eigrp_interface *);
51extern void eigrp_if_set_multicast (struct eigrp_interface *);
52extern u_char eigrp_default_iftype (struct interface *);
53extern void eigrp_if_free (struct eigrp_interface *, int);
54extern int eigrp_if_down (struct eigrp_interface *);
55extern void eigrp_if_stream_unset (struct eigrp_interface *);
56
57extern struct eigrp_interface *eigrp_if_lookup_by_local_addr (struct eigrp *,
58 struct interface *,
59 struct in_addr);
60extern struct eigrp_interface *eigrp_if_lookup_by_name (struct eigrp *, const char *);
61struct eigrp_interface * eigrp_if_lookup_recv_if (struct eigrp *, struct in_addr,
62 struct interface *);
63
64/* Simulate down/up on the interface. */
65extern void eigrp_if_reset (struct interface *);
66
67extern u_int32_t eigrp_bandwidth_to_scaled (u_int32_t);
68extern u_int32_t eigrp_scaled_to_bandwidth (u_int32_t);
69extern u_int32_t eigrp_delay_to_scaled (u_int32_t);
70extern u_int32_t eigrp_scaled_to_delay (u_int32_t);
71
72
73#endif /* ZEBRA_EIGRP_INTERFACE_H_ */